aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/12_all_default-warn-trampolines.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-10 07:35:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-10 09:05:39 +0000
commit63cbdb27e349a4dce9d6c51fdcf86df802e9d6c6 (patch)
tree685d0a9af700c5a541a1e6444f25d2d60e300bba /main/gcc/12_all_default-warn-trampolines.patch
parent75339e69c19646dedb30dd7f72806b477ead32cf (diff)
downloadaports-63cbdb27e349a4dce9d6c51fdcf86df802e9d6c6.tar.bz2
aports-63cbdb27e349a4dce9d6c51fdcf86df802e9d6c6.tar.xz
main/gcc: upgrade to 4.7.1
Disable gcc-go for now. It needs ucontext which we don't have.
Diffstat (limited to 'main/gcc/12_all_default-warn-trampolines.patch')
-rw-r--r--main/gcc/12_all_default-warn-trampolines.patch21
1 files changed, 10 insertions, 11 deletions
diff --git a/main/gcc/12_all_default-warn-trampolines.patch b/main/gcc/12_all_default-warn-trampolines.patch
index a5606c5ecd..4b26aecd29 100644
--- a/main/gcc/12_all_default-warn-trampolines.patch
+++ b/main/gcc/12_all_default-warn-trampolines.patch
@@ -1,9 +1,8 @@
Enable -Wtrampolines by default.
-
--- a/gcc/common.opt
+++ b/gcc/common.opt
-@@ -611,7 +611,7 @@ Common Var(warn_system_headers) Warning
+@@ -639,7 +639,7 @@ Common Var(warn_system_headers) Warning
Do not suppress warnings from system headers
Wtrampolines
@@ -14,12 +13,12 @@ Enable -Wtrampolines by default.
Wtype-limits
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
-@@ -3766,6 +3766,8 @@ headers---for that, @option{-Wunknown-pragmas} must also be used.
- @opindex Wno-trampolines
- Warn about trampolines generated for pointers to nested functions.
-
-+ In Gentoo, @option{-Wtrampolines} is enabled by default.
-+
- A trampoline is a small piece of data or code that is created at run
- time on the stack when the address of a nested function is taken, and
- is used to call the nested function indirectly. For some targets, it
+@@ -3878,6 +3878,8 @@ headers---for that, @option{-Wunknown-pragmas} must also be used.
+ for most targets, it is made up of code and thus requires the stack
+ to be made executable in order for the program to work properly.
+
++ This warning is enabled by default in Gentoo.
++
+ @item -Wfloat-equal
+ @opindex Wfloat-equal
+ @opindex Wno-float-equal