From 05dace46934d6fcf58be44b47781b5a3d6050769 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Thu, 17 May 2007 20:58:47 +0000 Subject: pr18096-1.c: Change dg-warning to dg-error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gcc.target/powerpc/pr18096-1.c: Change dg-warning to dg-error. * gcc.dg/cpp/include2.c: Ditto. * gcc.dg/cpp/mac-dir-2.c: Ditto. * gcc.dg/cpp/paste5.c: Ditto. * gcc.dg/cpp/paste6.c: Ditto. * gcc.dg/cpp/paste8.c: Ditto. * gcc.dg/cpp/paste11.c: Ditto. * gcc.dg/cpp/paste13.c: Ditto. * gcc.dg/cpp/skipping2.c: Ditto. * gcc.dg/reg-vol-struct-1.c: Ditto. * gcc.dg/Wshadow-1.c: Ditto. * gcc.dg/cpp/trad/comment.c: Ditto. * gcc.dg/cpp/trad/literals-2.c: Change dg-error to dg-warning. * gcc.dg/cpp/if-2.c: Ditto. * gcc.dg/array-5.c: Ditto. * gcc.dg/inline-15.c: Ditto. * gcc.dg/pr27953.c: Ditto. * gcc.dg/Wno-c++-compat.c: Ditto. Co-Authored-By: Manuel López-Ibáñez From-SVN: r124811 --- gcc/testsuite/ChangeLog | 22 ++++++++++++++++++++++ gcc/testsuite/gcc.dg/Wno-c++-compat.c | 2 +- gcc/testsuite/gcc.dg/Wshadow-1.c | 2 +- gcc/testsuite/gcc.dg/array-5.c | 2 +- gcc/testsuite/gcc.dg/cpp/if-2.c | 2 +- gcc/testsuite/gcc.dg/cpp/include2.c | 4 ++-- gcc/testsuite/gcc.dg/cpp/mac-dir-2.c | 2 +- gcc/testsuite/gcc.dg/cpp/paste11.c | 8 ++++---- gcc/testsuite/gcc.dg/cpp/paste13.c | 2 +- gcc/testsuite/gcc.dg/cpp/paste5.c | 2 +- gcc/testsuite/gcc.dg/cpp/paste6.c | 2 +- gcc/testsuite/gcc.dg/cpp/paste8.c | 4 ++-- gcc/testsuite/gcc.dg/cpp/skipping2.c | 2 +- gcc/testsuite/gcc.dg/cpp/trad/comment.c | 2 +- gcc/testsuite/gcc.dg/cpp/trad/literals-2.c | 2 +- gcc/testsuite/gcc.dg/inline-15.c | 4 ++-- gcc/testsuite/gcc.dg/pr27953.c | 2 +- gcc/testsuite/gcc.dg/reg-vol-struct-1.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/pr18096-1.c | 2 +- 19 files changed, 47 insertions(+), 25 deletions(-) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ae6e76..77efbca 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,25 @@ +2007-05-17 Janis Johnson + Manuel Lopez-Ibanez + + * gcc.target/powerpc/pr18096-1.c: Change dg-warning to dg-error. + * gcc.dg/cpp/include2.c: Ditto. + * gcc.dg/cpp/mac-dir-2.c: Ditto. + * gcc.dg/cpp/paste5.c: Ditto. + * gcc.dg/cpp/paste6.c: Ditto. + * gcc.dg/cpp/paste8.c: Ditto. + * gcc.dg/cpp/paste11.c: Ditto. + * gcc.dg/cpp/paste13.c: Ditto. + * gcc.dg/cpp/skipping2.c: Ditto. + * gcc.dg/reg-vol-struct-1.c: Ditto. + * gcc.dg/Wshadow-1.c: Ditto. + * gcc.dg/cpp/trad/comment.c: Ditto. + * gcc.dg/cpp/trad/literals-2.c: Change dg-error to dg-warning. + * gcc.dg/cpp/if-2.c: Ditto. + * gcc.dg/array-5.c: Ditto. + * gcc.dg/inline-15.c: Ditto. + * gcc.dg/pr27953.c: Ditto. + * gcc.dg/Wno-c++-compat.c: Ditto. + 2007-05-17 Kazu Hirata * g++.dg/cpp/_Pragma1.C: Skip on fido-*-* and m68k-*-*. diff --git a/gcc/testsuite/gcc.dg/Wno-c++-compat.c b/gcc/testsuite/gcc.dg/Wno-c++-compat.c index b1f3cf2..1fda016 100644 --- a/gcc/testsuite/gcc.dg/Wno-c++-compat.c +++ b/gcc/testsuite/gcc.dg/Wno-c++-compat.c @@ -5,5 +5,5 @@ /* { dg-do compile } */ /* { dg-options "-Wno-c++-compat" } */ -extern const int foo = 42; /* { dg-error "initialized and declared" } */ +extern const int foo = 42; /* { dg-warning "initialized and declared" } */ diff --git a/gcc/testsuite/gcc.dg/Wshadow-1.c b/gcc/testsuite/gcc.dg/Wshadow-1.c index c4553a4..6dd2eb6 100644 --- a/gcc/testsuite/gcc.dg/Wshadow-1.c +++ b/gcc/testsuite/gcc.dg/Wshadow-1.c @@ -10,7 +10,7 @@ void foo (double decl1) /* { dg-warning "shadows a global decl" } */ { } -void foo1 (int d) /* { dg-warning "previous definition" } */ +void foo1 (int d) /* { dg-error "previous definition" } */ { double d; /* { dg-bogus "warning" "warning in place of error" } */ /* { dg-error "redeclared as different" "" { target *-*-* } 15 } */ diff --git a/gcc/testsuite/gcc.dg/array-5.c b/gcc/testsuite/gcc.dg/array-5.c index 1717de4..a4053da 100644 --- a/gcc/testsuite/gcc.dg/array-5.c +++ b/gcc/testsuite/gcc.dg/array-5.c @@ -24,7 +24,7 @@ void func(int n, int m) /* Invalid: not compatible because 4 != 6. */ int a[n][6][m]; int (*p)[4][n+1]; - p = a; /* { dg-error "incompatible" } */ + p = a; /* { dg-warning "incompatible" } */ } { /* Compatible, but defined behavior only if n == 6 and m == n+1. */ diff --git a/gcc/testsuite/gcc.dg/cpp/if-2.c b/gcc/testsuite/gcc.dg/cpp/if-2.c index 8bca251..dc136b4 100644 --- a/gcc/testsuite/gcc.dg/cpp/if-2.c +++ b/gcc/testsuite/gcc.dg/cpp/if-2.c @@ -21,7 +21,7 @@ #if 'abcd' /* { dg-warning "(multi-character character constant)|(character constant (is )?too long)" "multi-character charconst" } */ #endif -#if 'abcdefghi' /* { dg-error "character constant (is )?too long" "charconst too long" } */ +#if 'abcdefghi' /* { dg-warning "character constant (is )?too long" "charconst too long" } */ #endif #if '' /* { dg-error "empty character constant" "empty charconst" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/include2.c b/gcc/testsuite/gcc.dg/cpp/include2.c index 46844bf..cda818e 100644 --- a/gcc/testsuite/gcc.dg/cpp/include2.c +++ b/gcc/testsuite/gcc.dg/cpp/include2.c @@ -7,8 +7,8 @@ /* Source: Neil Booth, 4 Nov 2000. */ -#include > /* { dg-warning "extra tokens" "" } */ -#include "silly\"" /* { dg-warning "extra tokens" "" } */ +#include > /* { dg-error "extra tokens" "" } */ +#include "silly\"" /* { dg-error "extra tokens" "" } */ /* These error is No such file or directory, just once. However, this message is locale-dependent, so don't test for it. */ diff --git a/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c index b574cfd..b31ab3b 100644 --- a/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c +++ b/gcc/testsuite/gcc.dg/cpp/mac-dir-2.c @@ -11,6 +11,6 @@ #define f(x) x f ( -#if 1 /* { dg-warning "not portable" } */ +#if 1 /* { dg-error "not portable" } */ 1) #endif diff --git a/gcc/testsuite/gcc.dg/cpp/paste11.c b/gcc/testsuite/gcc.dg/cpp/paste11.c index 18530b3..e3860eb 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste11.c +++ b/gcc/testsuite/gcc.dg/cpp/paste11.c @@ -9,7 +9,7 @@ glue (ident, 12) /* OK. */ glue (ident, 12e3) /* OK. */ -glue (ident, 12e+3) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, 12e-3) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, 1.2) /* { dg-warning "valid preprocessing tok" } */ -glue (ident, .12) /* { dg-warning "valid preprocessing tok" } */ +glue (ident, 12e+3) /* { dg-error "valid preprocessing tok" } */ +glue (ident, 12e-3) /* { dg-error "valid preprocessing tok" } */ +glue (ident, 1.2) /* { dg-error "valid preprocessing tok" } */ +glue (ident, .12) /* { dg-error "valid preprocessing tok" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste13.c b/gcc/testsuite/gcc.dg/cpp/paste13.c index e59c209..62c72d4 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste13.c +++ b/gcc/testsuite/gcc.dg/cpp/paste13.c @@ -6,4 +6,4 @@ spellings. Neil Booth, 9 Oct 2002. */ #define a /##/= -a /* { dg-warning "valid preprocessing tok" } */ +a /* { dg-error "valid preprocessing tok" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste5.c b/gcc/testsuite/gcc.dg/cpp/paste5.c index 2a763f5..fd04066 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste5.c +++ b/gcc/testsuite/gcc.dg/cpp/paste5.c @@ -18,7 +18,7 @@ extern void B(int); void foo(void) { - E(glue(F,*)) dummy; /* { dg-warning "valid preprocessing token" } */ + E(glue(F,*)) dummy; /* { dg-error "valid preprocessing token" } */ E(glue(F,G)) ; } diff --git a/gcc/testsuite/gcc.dg/cpp/paste6.c b/gcc/testsuite/gcc.dg/cpp/paste6.c index 6b6733c..ac9ae39 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste6.c +++ b/gcc/testsuite/gcc.dg/cpp/paste6.c @@ -9,4 +9,4 @@ extern int foo(int x); #define bar(x) foo(x) #define baz(x) bar(##x) -int quux(int y) { return baz(y); } /* { dg-warning "valid preprocessing" } */ +int quux(int y) { return baz(y); } /* { dg-error "valid preprocessing" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/paste8.c b/gcc/testsuite/gcc.dg/cpp/paste8.c index dd09894..ab01779 100644 --- a/gcc/testsuite/gcc.dg/cpp/paste8.c +++ b/gcc/testsuite/gcc.dg/cpp/paste8.c @@ -7,9 +7,9 @@ int foo(int, ...); a(1) a(1, 2, 3) #define b(x, y, z...) foo(x, ##y) -b(1, 2, 3) /* { dg-warning "valid preprocessing token" } */ +b(1, 2, 3) /* { dg-error "valid preprocessing token" } */ #define c(x, y, z...) foo(x, ##z) c(1, 2) c(1, 2, 3) #define d(x) fo(##x) -d(1) /* { dg-warning "valid preprocessing token" } */ +d(1) /* { dg-error "valid preprocessing token" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/skipping2.c b/gcc/testsuite/gcc.dg/cpp/skipping2.c index 3b0d0f3..14dafc0 100644 --- a/gcc/testsuite/gcc.dg/cpp/skipping2.c +++ b/gcc/testsuite/gcc.dg/cpp/skipping2.c @@ -10,5 +10,5 @@ #if foo #else foo /* { dg-bogus "extra tokens" "extra tokens in skipped block" } */ #endif foo /* { dg-bogus "extra tokens" "extra tokens in skipped block" } */ -#endif bar /* { dg-warning "extra tokens" "tokens after #endif" } */ +#endif bar /* { dg-error "extra tokens" "tokens after #endif" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/trad/comment.c b/gcc/testsuite/gcc.dg/cpp/trad/comment.c index ce9d7f1..971a78a6 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/comment.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/comment.c @@ -2,4 +2,4 @@ /* { dg-do preprocess } */ -/* { dg-warning "unterminated comment" } +/* { dg-error "unterminated comment" } diff --git a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c index 767ed77..b471772 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/literals-2.c @@ -2,7 +2,7 @@ recognized. */ /* { dg-do preprocess } */ -/* { dg-error "missing terminating" "bad charconst" { target *-*-* } 7 } */ +/* { dg-warning "missing terminating" "bad charconst" { target *-*-* } 7 } */ /* { dg-error "not valid" "bad charconst" { target *-*-* } 7 } */ #if 'x #endif diff --git a/gcc/testsuite/gcc.dg/inline-15.c b/gcc/testsuite/gcc.dg/inline-15.c index 7df8af1..e668191 100644 --- a/gcc/testsuite/gcc.dg/inline-15.c +++ b/gcc/testsuite/gcc.dg/inline-15.c @@ -3,5 +3,5 @@ /* { dg-do compile } */ /* { dg-options "-std=c99" } */ -extern inline int func1 (void); /* { dg-error "never defined" } */ -inline int func2 (void); /* { dg-error "never defined" } */ +extern inline int func1 (void); /* { dg-warning "never defined" } */ +inline int func2 (void); /* { dg-warning "never defined" } */ diff --git a/gcc/testsuite/gcc.dg/pr27953.c b/gcc/testsuite/gcc.dg/pr27953.c index 92a63d8..b5e86e2 100644 --- a/gcc/testsuite/gcc.dg/pr27953.c +++ b/gcc/testsuite/gcc.dg/pr27953.c @@ -1,4 +1,4 @@ /* PR c/27953 */ -void foo(struct A a) {} /* { dg-error "parameter list|definition|incomplete type" } */ +void foo(struct A a) {} /* { dg-warning "parameter list|definition|incomplete type" } */ void foo() {} /* { dg-error "redefinition" } */ diff --git a/gcc/testsuite/gcc.dg/reg-vol-struct-1.c b/gcc/testsuite/gcc.dg/reg-vol-struct-1.c index 7751bb4..b885f91 100644 --- a/gcc/testsuite/gcc.dg/reg-vol-struct-1.c +++ b/gcc/testsuite/gcc.dg/reg-vol-struct-1.c @@ -13,6 +13,6 @@ f (void) register struct S a; register struct S b[2]; register struct S c __asm__("nosuchreg"); /* { dg-error "object with volatile field" "explicit reg name" } */ - &a; /* { dg-warning "address of register" "explicit address" } */ - b; /* { dg-warning "address of register" "implicit address" } */ + &a; /* { dg-error "address of register" "explicit address" } */ + b; /* { dg-error "address of register" "implicit address" } */ } diff --git a/gcc/testsuite/gcc.target/powerpc/pr18096-1.c b/gcc/testsuite/gcc.target/powerpc/pr18096-1.c index 1393b12..c98b317 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr18096-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pr18096-1.c @@ -5,7 +5,7 @@ void f(char*); void mkcatdefs(char *fname) -{ /* { dg-warning "too large" "stack frame too large" } */ +{ /* { dg-error "too large" "stack frame too large" } */ char line [2147483647]; f(line); } -- cgit v1.1