OSDN Git Service

2004-07-09 Zack Weinberg <zack@codesourcery.com>
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jul 2004 21:30:35 +0000 (21:30 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Jul 2004 21:30:35 +0000 (21:30 +0000)
commitb3e83e1eba81e04927df58e8a69338d9cb4fa9d4
tree58b85f972de94f99b74cfcf79c3da6dcde633962
parentc1a3b6650d36a1defa9e50049828459716dbc661
2004-07-09  Zack Weinberg  <zack@codesourcery.com>
    Andrew Pinski  <apinski@apple.com>

* c-opts.c (c_common_post_options): Force unit-at-a-time mode
on when we have more than one input file.
(c_common_parse_file): Restore loop over all input files.
Clarify diagnostic for -dy when YYDEBUG wasn't defined.

* c-decl.c (set_type_context): New function.
(pop_scope): Use it to set context of types.  When we
encounter a TYPE_DECL, set the context of the attached type too.
(pop_file_scope): Don't call cpp_undef_all here.
(diagnose_mismatched_decls): Do not complain about a second
definition of an 'extern inline' function if it's not in the
same translation unit.  Do not complain about inline
declaration after use if the use was in a different
translation unit.
(merge_decls): Don't clobber olddecl's DECL_CONTEXT.
(pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
the external scope.
(pushdecl_top_level): Likewise.
(grokdeclarator): Clarify what is going on with setting
DECL_EXTERNAL on function types, a little.
(c_write_global_declarations): Don't do anything if
-fsyntax-only or errors have been encountered.

testsuite:
* gcc.dg/noncompile/init-4.c: Remove bogus dg-error marker.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84402 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-decl.c
gcc/c-opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/init-4.c