diff options
author | 2016-01-13 04:55:22 +0000 | |
---|---|---|
committer | 2016-01-13 04:55:22 +0000 | |
commit | e8c3a99f00aad957b370f8d8e4a2e5df6d3b6d5e (patch) | |
tree | 10aa7531c2dd4eb35c227930794f26dab9b0b609 /4.0.4 | |
parent | update my local git path (diff) | |
download | gcc-patches-e8c3a99f00aad957b370f8d8e4a2e5df6d3b6d5e.tar.gz gcc-patches-e8c3a99f00aad957b370f8d8e4a2e5df6d3b6d5e.tar.bz2 gcc-patches-e8c3a99f00aad957b370f8d8e4a2e5df6d3b6d5e.zip |
stop enabling trampoline warnings by default in older versions for compatibility and simplicity -- these are really only used for old builds now and cross-compiling
Diffstat (limited to '4.0.4')
-rw-r--r-- | 4.0.4/gentoo/00_all_gcc-trampolinewarn.patch | 68 | ||||
-rw-r--r-- | 4.0.4/gentoo/README.history | 3 |
2 files changed, 3 insertions, 68 deletions
diff --git a/4.0.4/gentoo/00_all_gcc-trampolinewarn.patch b/4.0.4/gentoo/00_all_gcc-trampolinewarn.patch deleted file mode 100644 index 96db820..0000000 --- a/4.0.4/gentoo/00_all_gcc-trampolinewarn.patch +++ /dev/null @@ -1,68 +0,0 @@ - This trivial patch causes gcc to emit a warning whenever - it generates a trampoline. These are otherwise hard to - locate. - Kevin F. Quinn <kevquinn@gentoo.org> 21 Dec 2005 - ---- gcc/gcc/c.opt -+++ gcc/gcc/c.opt -@@ -406,6 +406,10 @@ - C ObjC Var(warn_traditional) - Warn about features not present in traditional C - -+Wtrampolines -+C ObjC C++ ObjC++ -+Warn whenever the compiler generates a trampoline -+ - Wtrigraphs - C ObjC C++ ObjC++ - Warn if trigraphs are encountered that might affect the meaning of the program ---- gcc/gcc/c-opts.c -+++ gcc/gcc/c-opts.c -@@ -476,6 +476,10 @@ - cpp_opts->warn_traditional = value; - break; - -+ case OPT_Wtrampolines: -+ warn_trampolines = value; -+ break; -+ - case OPT_Wtrigraphs: - cpp_opts->warn_trigraphs = value; - break; ---- gcc/gcc/flags.h -+++ gcc/gcc/flags.h -@@ -118,6 +118,10 @@ - - extern int warn_strict_aliasing; - -+/* Warn whenever a trampoline is generated. */ -+ -+extern bool warn_trampolines; -+ - /* Temporarily suppress certain warnings. - This is set while reading code from a system header file. */ - ---- gcc/gcc/varasm.c -+++ gcc/gcc/varasm.c -@@ -5428,6 +5428,9 @@ - - int trampolines_created; - -+/* Warn when a trampoline is generated. */ -+bool warn_trampolines = 1; -+ - void - file_end_indicate_exec_stack (void) - { ---- gcc/gcc/builtins.c -+++ gcc/gcc/builtins.c -@@ -5014,6 +5014,9 @@ - #endif - trampolines_created = 1; - INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain); -+ -+ if (warn_trampolines) -+ warning ("generating trampoline in object (requires executable stack)"); - - return const0_rtx; - } diff --git a/4.0.4/gentoo/README.history b/4.0.4/gentoo/README.history index 894e96f..c39a9a6 100644 --- a/4.0.4/gentoo/README.history +++ b/4.0.4/gentoo/README.history @@ -1,3 +1,6 @@ +1.3 [pending] + - 00_all_gcc-trampolinewarn.patch + 1.2 17 Oct 2014 + 01_all_gcc-4.1-alpha-asm-mcpu.patch + 05_all_gcc-4.0.x-siginfo.patch |