Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 746715 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, targeting 5.10.75
linux-5.10-fix-gcc-plugins.patch (text/plain), 1.81 KB, created by
kfm
on 2021-10-25 18:55:28 UTC
(
hide
)
Description:
Somewhat simpler patch, targeting 5.10.75
Filename:
MIME Type:
Creator:
kfm
Created:
2021-10-25 18:55:28 UTC
Size:
1.81 KB
patch
obsolete
>diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh >deleted file mode 100755 >index b79fd0bea838..000000000000 >--- a/scripts/gcc-plugin.sh >+++ /dev/null >@@ -1,19 +0,0 @@ >-#!/bin/sh >-# SPDX-License-Identifier: GPL-2.0 >- >-set -e >- >-srctree=$(dirname "$0") >- >-gccplugins_dir=$($* -print-file-name=plugin) >- >-# we need a c++ compiler that supports the designated initializer GNU extension >-$HOSTCC -c -x c++ -std=gnu++98 - -fsyntax-only -I $srctree/gcc-plugins -I $gccplugins_dir/include 2>/dev/null <<EOF >-#include "gcc-common.h" >-class test { >-public: >- int test; >-} test = { >- .test = 1 >-}; >-EOF >diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig >index ae19fb0243b9..ab9eb4cbe33a 100644 >--- a/scripts/gcc-plugins/Kconfig >+++ b/scripts/gcc-plugins/Kconfig >@@ -9,7 +9,7 @@ menuconfig GCC_PLUGINS > bool "GCC plugins" > depends on HAVE_GCC_PLUGINS > depends on CC_IS_GCC >- depends on $(success,$(srctree)/scripts/gcc-plugin.sh $(CC)) >+ 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 >diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile >index d66949bfeba4..b5487cce69e8 100644 >--- a/scripts/gcc-plugins/Makefile >+++ b/scripts/gcc-plugins/Makefile >@@ -22,9 +22,9 @@ always-y += $(GCC_PLUGIN) > GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin) > > plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \ >- -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++98 \ >+ -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \ > -fno-rtti -fno-exceptions -fasynchronous-unwind-tables \ >- -ggdb -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat \ >+ -ggdb -Wno-narrowing -Wno-unused-variable \ > -Wno-format-diag > > plugin_ldflags = -shared
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