diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-15 05:46:36 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-15 05:46:36 +0000 |
commit | 8bc8a8f43fa33db5455a90cca4f0ad5e67b20612 (patch) | |
tree | a01412ef395a7d90aeb4d60dc1ddd5779ac1fb35 /gcc/builtins.c | |
parent | e253d57d2ac1db94bc81e9a0fcfdeec0fe08f7bb (diff) | |
download | gcc-8bc8a8f43fa33db5455a90cca4f0ad5e67b20612.tar.gz |
2010-07-15 Magnus Granberg <zorry@gentoo.org>
Kevin F. Quinn <kevquinn@gentoo.org>
* builtins.c (expand_builtin_init_trampoline): If
-Wtrampolines make a warning.
* common.opt: Add -Wtrampolines.
* doc/invoke.texi: Add -Wtrampolines.
testsuite/
* gcc.dg/Wtrampolines.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162205 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index b94e056bc65..2bcf656776a 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -5250,6 +5250,10 @@ expand_builtin_init_trampoline (tree exp) targetm.calls.trampoline_init (m_tramp, t_func, r_chain); trampolines_created = 1; + + warning_at (DECL_SOURCE_LOCATION (t_func), OPT_Wtrampolines, + "trampoline generated for nested function %qD", t_func); + return const0_rtx; } |