Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 740934 Details for
Bug 814200
sys-kernel/gentoo-sources: GCC_PLUGINS are forcibly disabled if gcc-11 is the active compiler
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Somewhat simpler patch, tested on 5.4
gcc-plugins-simplify-GCC-plugin-dev-capability-test.patch (text/plain), 1.75 KB, created by
Mike Pagano
on 2021-09-23 17:24:27 UTC
(
hide
)
Description:
Somewhat simpler patch, tested on 5.4
Filename:
MIME Type:
Creator:
Mike Pagano
Created:
2021-09-23 17:24:27 UTC
Size:
1.75 KB
patch
obsolete
>--- a/scripts/gcc-plugin.sh 2021-09-23 10:18:55.315793245 -0400 >+++ /dev/null 2021-09-23 06:34:13.701169624 -0400 >@@ -1,66 +0,0 @@ >-#!/bin/sh >-# SPDX-License-Identifier: GPL-2.0 >-srctree=$(dirname "$0") >- >-SHOW_ERROR= >-if [ "$1" = "--show-error" ] ; then >- SHOW_ERROR=1 >- shift || true >-fi >- >-gccplugins_dir=$($3 -print-file-name=plugin) >-plugincc=$($1 -E -x c++ - -o /dev/null -I"${srctree}"/gcc-plugins -I"${gccplugins_dir}"/include 2>&1 <<EOF >-#include "gcc-common.h" >-#if BUILDING_GCC_VERSION >= 4008 || defined(ENABLE_BUILD_WITH_CXX) >-#warning $2 CXX >-#else >-#warning $1 CC >-#endif >-EOF >-) >- >-if [ $? -ne 0 ] >-then >- if [ -n "$SHOW_ERROR" ] ; then >- echo "${plugincc}" >&2 >- fi >- exit 1 >-fi >- >-case "$plugincc" in >- *"$1 CC"*) >- echo "$1" >- exit 0 >- ;; >- >- *"$2 CXX"*) >- # the c++ compiler needs another test, see below >- ;; >- >- *) >- exit 1 >- ;; >-esac >- >-# we need a c++ compiler that supports the designated initializer GNU extension >-plugincc=$($2 -c -x c++ -std=gnu++98 - -fsyntax-only -I"${srctree}"/gcc-plugins -I"${gccplugins_dir}"/include 2>&1 <<EOF >-#include "gcc-common.h" >-class test { >-public: >- int test; >-} test = { >- .test = 1 >-}; >-EOF >-) >- >-if [ $? -eq 0 ] >-then >- echo "$2" >- exit 0 >-fi >- >-if [ -n "$SHOW_ERROR" ] ; then >- echo "${plugincc}" >&2 >-fi >-exit 1 >--- a/scripts/gcc-plugins/Kconfig 2021-09-23 10:15:50.898216868 -0400 >+++ b/scripts/gcc-plugins/Kconfig 2021-09-23 10:17:30.082043750 -0400 >@@ -17,7 +17,8 @@ config HAVE_GCC_PLUGINS > menuconfig GCC_PLUGINS > bool "GCC plugins" > depends on HAVE_GCC_PLUGINS >- depends on PLUGIN_HOSTCC != "" >+ depends on CC_IS_GCC >+ depends on $(success,test -e $(shell,$(CC) -print-file-name=plugin)/include/plugin-version.h) > default y > help > GCC plugins are loadable modules that provide extra features to the
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 814200
:
740556
|
740934
|
746715
|
748560