diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-08 20:50:37 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-08 20:50:37 +0000 |
commit | be9eba168a74cb20988b6ad5ffcef215f5e4bf2f (patch) | |
tree | 0cb31b3af8f40dc9a2dc673b1f35cd767a63e495 /gcc/testsuite/gcc.dg | |
parent | 3f56e8dc4475cd42fcb734ae1a2cf47574756168 (diff) | |
download | gcc-be9eba168a74cb20988b6ad5ffcef215f5e4bf2f.tar.gz |
gcc
* c-parser.c (c_parser_translation_unit): Use location in error.
(c_parser_external_declaration): Likewise.
(c_parser_declaration_or_fndef): Likewise.
(c_parser_enum_specifier): Likewise.
(c_parser_struct_or_union_specifier): Likewise.
(c_parser_struct_declaration): Likewise.
(c_parser_typeof_specifier): Likewise.
(c_parser_parms_list_declarator): Likewise.
(c_parser_asm_string_literal): Likewise.
(c_parser_braced_init): Likewise.
(c_parser_initelt): Likewise.
(c_parser_compound_statement_nostart): Likewise.
(c_parser_statement_after_labels): Likewise.
(c_parser_do_statement): Likewise.
(c_parser_asm_statement): Likewise.
(c_parser_conditional_expression): Likewise.
(c_parser_unary_expression): Likewise.
(c_parser_sizeof_expression): Likewise.
(c_parser_postfix_expression): Likewise.
(c_parser_postfix_expression_after_paren_type): Likewise.
(c_parser_objc_class_instance_variables): Likewise.
(c_parser_objc_method_definition): Likewise.
(c_parser_objc_methodprotolist): Likewise.
(c_parser_pragma): Likewise.
(c_parser_omp_clause_num_threads): Likewise.
(c_parser_omp_clause_schedule): Likewise.
(c_parser_omp_all_clauses): Likewise.
(c_parser_omp_sections_scope): Likewise.
(c_parser_label): Use location of label, not colon.
gcc/testsuite
* gcc.dg/empty-source-3.c: Update warning location.
* gcc.dg/gomp/barrier-2.c: Likewise.
* gcc.dg/label-decl-3.c: Likewise.
* gcc.dg/label-decl-2.c: Likewise.
* gcc.dg/empty-source-2.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/empty-source-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/empty-source-3.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/gomp/barrier-2.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/label-decl-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/label-decl-3.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/empty-source-2.c b/gcc/testsuite/gcc.dg/empty-source-2.c index 8fbe0d99f60..4d9cc25ff7e 100644 --- a/gcc/testsuite/gcc.dg/empty-source-2.c +++ b/gcc/testsuite/gcc.dg/empty-source-2.c @@ -3,4 +3,4 @@ /* { dg-do compile } */ /* { dg-options "-pedantic" } */ -/* { dg-warning "ISO C forbids an empty source file" "empty" { target *-*-* } 1 } */ +/* { dg-warning "ISO C forbids an empty source file" "empty" { target *-*-* } 6 } */ diff --git a/gcc/testsuite/gcc.dg/empty-source-3.c b/gcc/testsuite/gcc.dg/empty-source-3.c index a107a1cdf81..4facdab3e7e 100644 --- a/gcc/testsuite/gcc.dg/empty-source-3.c +++ b/gcc/testsuite/gcc.dg/empty-source-3.c @@ -4,4 +4,4 @@ /* { dg-do compile } */ /* { dg-options "-pedantic-errors" } */ -/* { dg-error "ISO C forbids an empty source file" "empty" { target *-*-* } 1 } */ +/* { dg-error "ISO C forbids an empty source file" "empty" { target *-*-* } 7 } */ diff --git a/gcc/testsuite/gcc.dg/gomp/barrier-2.c b/gcc/testsuite/gcc.dg/gomp/barrier-2.c index 6e94d0c25c6..3787c35a13e 100644 --- a/gcc/testsuite/gcc.dg/gomp/barrier-2.c +++ b/gcc/testsuite/gcc.dg/gomp/barrier-2.c @@ -15,9 +15,9 @@ void f1(void) void f2(void) { - label: + label: /* { dg-error "label at end of compound statement" } */ #pragma omp barrier -} /* { dg-error "label at end of compound statement" } */ +} void f3(_Bool p) { diff --git a/gcc/testsuite/gcc.dg/label-decl-2.c b/gcc/testsuite/gcc.dg/label-decl-2.c index fa351f67a13..97c453b78b7 100644 --- a/gcc/testsuite/gcc.dg/label-decl-2.c +++ b/gcc/testsuite/gcc.dg/label-decl-2.c @@ -10,7 +10,7 @@ f (void) { __label__ a, b, c, d; __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */ - /* { dg-warning "ISO C forbids label declarations" "label decls" { target *-*-* } 12 } */ + /* { dg-warning "ISO C forbids label declarations" "label decls" { target *-*-* } 11 } */ goto c; /* { dg-error "label 'c' used but not defined" } */ a: (void)0; b: (void)0; diff --git a/gcc/testsuite/gcc.dg/label-decl-3.c b/gcc/testsuite/gcc.dg/label-decl-3.c index b980a2f7530..32daea87f18 100644 --- a/gcc/testsuite/gcc.dg/label-decl-3.c +++ b/gcc/testsuite/gcc.dg/label-decl-3.c @@ -11,7 +11,7 @@ f (void) { __label__ a, b, c, d; __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */ - /* { dg-error "ISO C forbids label declarations" "label decls" { target *-*-* } 13 } */ + /* { dg-error "ISO C forbids label declarations" "label decls" { target *-*-* } 12 } */ goto c; /* { dg-error "label 'c' used but not defined" } */ a: (void)0; b: (void)0; |