tree-nested.c (convert_tramp_reference): Do not build a trampoline if we don't want...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 25 May 2008 22:42:49 +0000 (22:42 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 25 May 2008 22:42:49 +0000 (22:42 +0000)
commit3651f7ad941bc7dd797d5e5948c9922da0fb6f8c
tree1a3f8d2557f13dd05aa93e2ca0e800b6a5a115c6
parentb885a4c1e2ba31aacad53184599c8ae2fc1147e6
tree-nested.c (convert_tramp_reference): Do not build a trampoline if we don't want one.

 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
build a trampoline if we don't want one.
* varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
return zero for nested functions if we don't want a trampoline.
ada/
* trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
instead of TREE_STATIC on the ADDR_EXPR.

From-SVN: r135884
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/trampoline1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/trampoline2.adb [new file with mode: 0644]
gcc/tree-nested.c
gcc/varasm.c