re PR c/15007 (crash when including precompiled header with -include)
authorZack Weinberg <zack@codesourcery.com>
Sun, 9 May 2004 21:26:58 +0000 (21:26 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 9 May 2004 21:26:58 +0000 (21:26 +0000)
commiteecec6986c626e8a552b41f91bafc1f898d55b9a
treea97651f0372e55a005965094df6f8f2eba9540d7
parenteb01299a99cd979f866e896f7deeedcc144db927
re PR c/15007 (crash when including precompiled header with -include)

PR 15007
* c-decl.c (current_file_decl): Rename to all_translation_units,
adjust comment.
(pop_scope): If popping file_scope, construct a
TRANSLATION_UNIT_DECL and make it the context of all the
symbols in the scope.
(push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
(pushdecl): Clarify comment.  Do not set DECL_CONTEXT of
anything to current_file_decl.
(pushdecl_top_level): Likewise.
(store_parm_decls_newstyle): Adjust check for nested function.
(c_write_global_declarations): Update for renamed variable.

From-SVN: r81655
gcc/ChangeLog
gcc/c-decl.c