di-longlong64-sync-1.c: Add comments to checks for multiple messages reported for...
authorJanis Johnson <janisjo@codesourcery.com>
Wed, 13 Jun 2012 22:53:42 +0000 (22:53 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Wed, 13 Jun 2012 22:53:42 +0000 (22:53 +0000)
* gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple
messages reported for one line of source code.
* gcc.dg/format/few-1.c: Likewise.
* gcc.dg/ia64-sync-2.c: Likewise.
* gcc.dg/sync-2.c: Likewise.
* gcc.dg/noncompile/pr44517.c: Likewise.

From-SVN: r188537

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/di-longlong64-sync-1.c
gcc/testsuite/gcc.dg/format/few-1.c
gcc/testsuite/gcc.dg/ia64-sync-2.c
gcc/testsuite/gcc.dg/noncompile/pr44517.c
gcc/testsuite/gcc.dg/noncompile/pr52290.c
gcc/testsuite/gcc.dg/sync-2.c

index fb9b69c3df7790a3811b9809148c09b7650505e1..60f80c18dd2ccae5a548998f52aee3f444ccfff5 100644 (file)
@@ -1,3 +1,12 @@
+2012-06-13  Janis Johnson  <janisjo@codesourcery.com>
+
+       * gcc.dg/di-longlong64-sync-1.c: Add comments to checks for multiple
+       messages reported for one line of source code.
+       * gcc.dg/format/few-1.c: Likewise.
+       * gcc.dg/ia64-sync-2.c: Likewise.
+       * gcc.dg/sync-2.c: Likewise.
+       * gcc.dg/noncompile/pr44517.c: Likewise.
+
 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/49888
index f04cf62e03d382686fa687d0afc954dba9ea2298..b49acd27a11132c23d5d69f50a313a82517ccb70 100644 (file)
@@ -3,8 +3,8 @@
 /* { dg-options "-std=gnu99" } */
 /* { dg-additional-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 
-/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
-/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "fetch_and_nand" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "nand_and_fetch" { target *-*-* } 0 } */
 
 
 /* Test basic functionality of the intrinsics.  The operations should
index 6e0d35b31c17ba3f9745c76cbea024857abcbcc3..cf411409b648373d3ee81fe0e5af87e6d8c25e14 100644 (file)
@@ -4,15 +4,15 @@
 int f(int *ip, char *cp)
 {
        __builtin_printf ("%*.*s");
-/* { dg-warning "field width specifier '\\*' expects a matching 'int' argument" "" { target *-*-* } 6 } */
-/* { dg-warning "field precision specifier '\\.\\*' expects a matching 'int' argument" "" { target *-*-* } 6 } */
-/* { dg-warning "format '%s' expects a matching 'char \\*' argument" "" { target *-*-* } 6 } */
+/* { dg-warning "field width specifier '\\*' expects a matching 'int' argument" "width" { target *-*-* } 6 } */
+/* { dg-warning "field precision specifier '\\.\\*' expects a matching 'int' argument" "precision" { target *-*-* } 6 } */
+/* { dg-warning "format '%s' expects a matching 'char \\*' argument" "format" { target *-*-* } 6 } */
        __builtin_printf ("%*.*s", ip, *cp);
-/* { dg-warning "field width specifier '\\*' expects argument of type 'int'" "" { target *-*-* } 10 } */
-/* { dg-warning "format '%s' expects a matching 'char \\*' argument" "" { target *-*-* } 10 } */
+/* { dg-warning "field width specifier '\\*' expects argument of type 'int'" "width" { target *-*-* } 10 } */
+/* { dg-warning "format '%s' expects a matching 'char \\*' argument" "format" { target *-*-* } 10 } */
        __builtin_printf ("%s %i", ip, ip);
-/* { dg-warning "format '%s' expects argument of type 'char \\*'" "" { target *-*-* } 13 } */
-/* { dg-warning "format '%i' expects argument of type 'int'" "" { target *-*-* } 13 } */
+/* { dg-warning "format '%s' expects argument of type 'char \\*'" "char" { target *-*-* } 13 } */
+/* { dg-warning "format '%i' expects argument of type 'int'" "int" { target *-*-* } 13 } */
        __builtin_printf ("%s %i", cp);
 /* { dg-warning "format '%i' expects a matching 'int' argument" "" { target *-*-* } 16 } */
        __builtin_printf ("%lc");
index d8d4082ce0c6dc5c2cdb1cbcaa0c0d5b93fcf786..e6f4cad73fb935e82da6426eda5c2b7638e4cdd0 100644 (file)
@@ -4,8 +4,8 @@
 /* { dg-options "-march=i486" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 /* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
 
-/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
-/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "fetch_and_nand" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "nand_and_fetch" { target *-*-* } 0 } */
 
 /* Test basic functionality of the intrinsics.  */
 
index 3a5148af83f83c0ac2d2319d510d00e69f55a736..fa9a9df2d1316187bc0400cf0bcb1b4dce91066e 100644 (file)
@@ -1,7 +1,7 @@
 /* PR c/44517: Improve diagnostic for misspelled typename in function declaration. */
 int f1(int x, pid_t y, long z, in t) {
-/* { dg-error "unknown type name 'pid_t'" "" { target *-*-* } 2 } */
-/* { dg-error "unknown type name 'in'" "" { target *-*-* } 2 } */
+/* { dg-error "unknown type name 'pid_t'" "pid_t" { target *-*-* } 2 } */
+/* { dg-error "unknown type name 'in'" "in" { target *-*-* } 2 } */
   return x + y + z + t;
 }
 
index 275543cfca9fd5c51c80852e8a7e3fa51f9c6cb2..ac408fbd15b54015b673b84fb3aff737fe4a7d3e 100644 (file)
@@ -1,3 +1,3 @@
-/* { dg-error "undeclared here" "" { target *-*-* } 3 } */
-/* { dg-error "expected" "" { target *-*-* } 3 } */
+/* { dg-error "undeclared here" "undeclared" { target *-*-* } 3 } */
+/* { dg-error "expected" "expected" { target *-*-* } 3 } */
 int f()[j]
index e94248cbc5c48026dd2fb18a536c7c5bd19c07af..78aa8cb208abeaf21c2bf851c07e3474f4370e06 100644 (file)
@@ -4,8 +4,8 @@
 /* { dg-options "-march=i486" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
 /* { dg-options "-mcpu=v9" { target sparc*-*-* } } */
 
-/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
-/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_fetch_and_nand' changed semantics in GCC 4.4" "fetch_and_nand" { target *-*-* } 0 } */
+/* { dg-message "note: '__sync_nand_and_fetch' changed semantics in GCC 4.4" "nand_and_fetch" { target *-*-* } 0 } */
 
 /* Test functionality of the intrinsics for 'short' and 'char'.  */