summaryrefslogtreecommitdiffstats
path: root/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch')
-rw-r--r--patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch b/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch
deleted file mode 100644
index e141938..0000000
--- a/patches/gcc-4.7.2/0300-gcc-trampolinewarn.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From: "Kevin F. Quinn" <kevquinn@gentoo.org>
-Date: Tue, 1 Nov 2011 18:25:08 +0100
-Subject: [PATCH] gcc trampolinewarn
-
-Taken from gentoo, original description:
-
-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)'.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
----
- gcc/builtins.c | 3 +++
- gcc/common.opt | 4 ++++
- 2 files changed, 7 insertions(+)
-
-diff --git a/gcc/builtins.c b/gcc/builtins.c
-index 04980cc..fb3c837 100644
---- a/gcc/builtins.c
-+++ b/gcc/builtins.c
-@@ -4535,6 +4535,9 @@ expand_builtin_va_copy (tree exp)
- emit_block_move (dstb, srcb, size, BLOCK_OP_NORMAL);
- }
-
-+ if (warn_trampolines)
-+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)");
-+
- return const0_rtx;
- }
-
-diff --git a/gcc/common.opt b/gcc/common.opt
-index 033fbe0..2946022 100644
---- a/gcc/common.opt
-+++ b/gcc/common.opt
-@@ -646,6 +646,10 @@ Wtype-limits
- Common Var(warn_type_limits) Init(-1) Warning
- Warn if a comparison is always true or always false due to the limited range of the data type
-
-+Wtrampolines
-+Common Var(warn_trampolines) Init(1)
-+Warn whenever a trampoline is generated
-+
- Wuninitialized
- Common Var(warn_uninitialized) Init(-1) Warning
- Warn about uninitialized automatic variables