OSDN Git Service

PR 15007
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 May 2004 21:26:58 +0000 (21:26 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 May 2004 21:26:58 +0000 (21:26 +0000)
commit4d714d554ff7b9f7f04ac62c516c0d7b3954369d
treea97651f0372e55a005965094df6f8f2eba9540d7
parent57a4c6419b7b612a4bbb0a6ba2ec3cb4b5baa029
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81655 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c