summaryrefslogtreecommitdiff
path: root/sys-devel/base-gcc
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2015-04-24 11:20:14 +0300
committerBlackNoxis <steven.darklight@gmail.com>2015-04-24 11:20:14 +0300
commit9836a336a4ec6b64c3a237acc94a3d03687cdef1 (patch)
treefc60919dd56463c937a3dd55d2bb28b9bd5c4aef /sys-devel/base-gcc
parentaac463bb3b981514d4a08978d3b76128bf2c90a1 (diff)
[sys-devel/*gcc] vbox guest adds fixed with patch
Diffstat (limited to 'sys-devel/base-gcc')
-rw-r--r--sys-devel/base-gcc/base-gcc-4.8.4.ebuild3
-rw-r--r--sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch15
2 files changed, 18 insertions, 0 deletions
diff --git a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild b/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
index 70944b4b..66d66257 100644
--- a/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
+++ b/sys-devel/base-gcc/base-gcc-4.8.4.ebuild
@@ -83,6 +83,9 @@ src_prepare() {
#Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs.
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch
+
+ #virtualbox-guest-additions fix patch
+ epatch "${FILESDIR}/${P}-no_instrument_function.patch"
}
## Just install libgcc stuff
diff --git a/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch b/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch
new file mode 100644
index 00000000..c363b961
--- /dev/null
+++ b/sys-devel/base-gcc/files/base-gcc-4.8.4-no_instrument_function.patch
@@ -0,0 +1,15 @@
+--- trunk/gcc/c-family/c-common.c 2014/01/02 22:23:26 206289
++++ trunk/gcc/c-family/c-common.c 2014/01/15 19:37:35 206643
+@@ -7985,12 +7985,6 @@
+ "%qE attribute applies only to functions", name);
+ *no_add_attrs = true;
+ }
+- else if (DECL_INITIAL (decl))
+- {
+- error_at (DECL_SOURCE_LOCATION (decl),
+- "can%'t set %qE attribute after definition", name);
+- *no_add_attrs = true;
+- }
+ else
+ DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (decl) = 1;
+