diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-18 13:49:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-18 13:49:32 +0000 |
commit | 081c531fecfa27b5c0e9f48a3ca1a96ea3ef553c (patch) | |
tree | 9e151374b53ad61b9c5407d4cc4f8e8fd8ec3c24 /main/gcc/12_all_default-warn-trampolines.patch | |
parent | de7b37cbad5d595786fa1b78bed8dac552de1b27 (diff) | |
download | aports-081c531fecfa27b5c0e9f48a3ca1a96ea3ef553c.tar.bz2 aports-081c531fecfa27b5c0e9f48a3ca1a96ea3ef553c.tar.xz |
main/gcc: upgrade to 4.6.1
Diffstat (limited to 'main/gcc/12_all_default-warn-trampolines.patch')
-rw-r--r-- | main/gcc/12_all_default-warn-trampolines.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/gcc/12_all_default-warn-trampolines.patch b/main/gcc/12_all_default-warn-trampolines.patch new file mode 100644 index 000000000..a5606c5ec --- /dev/null +++ b/main/gcc/12_all_default-warn-trampolines.patch @@ -0,0 +1,25 @@ +Enable -Wtrampolines by default. + + +--- a/gcc/common.opt ++++ b/gcc/common.opt +@@ -611,7 +611,7 @@ Common Var(warn_system_headers) Warning + Do not suppress warnings from system headers + + Wtrampolines +-Common Var(warn_trampolines) Warning ++Common Var(warn_trampolines) Init(1) Warning + Warn whenever a trampoline is generated + + 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 |