summaryrefslogtreecommitdiffstats
path: root/patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch')
-rw-r--r--patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch b/patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch
deleted file mode 100644
index 6b95f70..0000000
--- a/patches/gcc-4.3.2/generic/gentoo/00_all_gcc-trampolinewarn.patch
+++ /dev/null
@@ -1,41 +0,0 @@
- This trivial patch causes gcc to emit a warning whenever
- it generates a trampoline. These are otherwise hard to
- locate. It is rigged to default ON - to have it default
- to OFF remove the text 'Init(1)' from the common.opt
- patch, leaving just 'Common Var(warn_trampolines)'.
- Kevin F. Quinn <kevquinn@gentoo.org> 17 Jan 2006
-
----
- gcc/builtins.c | 3 +++
- gcc/common.opt | 4 ++++
- 2 files changed, 7 insertions(+)
-
-Index: gcc-4.3.1/gcc/common.opt
-===================================================================
---- gcc-4.3.1.orig/gcc/common.opt
-+++ gcc-4.3.1/gcc/common.opt
-@@ -182,6 +182,10 @@ Wsystem-headers
- Common Var(warn_system_headers) Warning
- Do not suppress warnings from system headers
-
-+Wtrampolines
-+Common Var(warn_trampolines) Init(1)
-+Warn whenever a trampoline is generated
-+
- Wuninitialized
- Common Var(warn_uninitialized) Warning
- Warn about uninitialized automatic variables
-Index: gcc-4.3.1/gcc/builtins.c
-===================================================================
---- gcc-4.3.1.orig/gcc/builtins.c
-+++ gcc-4.3.1/gcc/builtins.c
-@@ -5662,6 +5662,9 @@ expand_builtin_init_trampoline (tree exp
- trampolines_created = 1;
- INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain);
-
-+ if (warn_trampolines)
-+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)");
-+
- return const0_rtx;
- }
-