aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2004-07-09 21:30:35 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-07-09 21:30:35 +0000
commit9affb2c7e47fd5abfa4ee62ee4121d5329076a23 (patch)
tree58b85f972de94f99b74cfcf79c3da6dcde633962 /gcc/testsuite/gcc.dg
parent4077d207437b94a2d07d76c93b6583d5920bf7a8 (diff)
downloadgcc-9affb2c7e47fd5abfa4ee62ee4121d5329076a23.zip
gcc-9affb2c7e47fd5abfa4ee62ee4121d5329076a23.tar.gz
gcc-9affb2c7e47fd5abfa4ee62ee4121d5329076a23.tar.bz2
c-opts.c (c_common_post_options): Force unit-at-a-time mode on when we have more than one input file.
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. From-SVN: r84402
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/noncompile/init-4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/noncompile/init-4.c b/gcc/testsuite/gcc.dg/noncompile/init-4.c
index 906c115..2d8bef3 100644
--- a/gcc/testsuite/gcc.dg/noncompile/init-4.c
+++ b/gcc/testsuite/gcc.dg/noncompile/init-4.c
@@ -1,3 +1,2 @@
struct a { char *b; } c[D] /* { dg-error "undeclared" } */
- = /* { dg-error "storage size" } */
- { { "" } } ; /* { dg-warning "braces around scalar initializer|near" } */
+ = { { "" } } ; /* { dg-warning "braces around scalar initializer|near" } */