re PR lto/50492 (Ada bootstrap failure --with-build-config=bootstrap-lto)
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 7 Oct 2011 11:43:03 +0000 (11:43 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 7 Oct 2011 11:43:03 +0000 (11:43 +0000)
commit228ee4261311d7639cbf951f891e4f0fa34d0a5b
tree6aba893f2c45acf7d652aa16f74ecac631864587
parentb97bf1ac69c812cccfaefe8d89168342075e7e2d
re PR lto/50492 (Ada bootstrap failure --with-build-config=bootstrap-lto)

PR lto/50492
* gcc-interface/gigi.h (gnat_pushdecl): Adjust comment.
* gcc-interface/utils.c (global_context): New variable.
(gnat_pushdecl): Initialize it and set it as the DECL_CONTEXT of DECLs
that are either public external or at top level.  Use "No" macro.
(end_subprog_body): Call decl_function_context.
(rest_of_subprog_body_compilation): Likewise.

From-SVN: r179652
gcc/ada/ChangeLog
gcc/ada/gcc-interface/gigi.h
gcc/ada/gcc-interface/utils.c