This test modifies dg-message test directives by adding comments that will be added to lines in the test summary to eliminate non-unique lines for checks of messages for the same line of source code in a test.
Tested on arm-none-eabi. OK for mainline? Janis
2012-06-11 Janis Johnson <jani...@codesourcery.com> * gcc.target/arm/di-longlong64-sync-withhelpers.c: Likewise. * gcc.target/arm/di-longlong64-sync-withldrexd.c: Likewise. Index: gcc.target/arm/di-longlong64-sync-withhelpers.c =================================================================== --- gcc.target/arm/di-longlong64-sync-withhelpers.c (revision 188249) +++ gcc.target/arm/di-longlong64-sync-withhelpers.c (working copy) @@ -2,8 +2,8 @@ /* { dg-require-effective-target arm_arch_v5_ok } */ /* { dg-options "-std=gnu99" } */ /* { dg-add-options arm_arch_v5 } */ -/* { 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 } */ /* { dg-message "file included" "In file included" { target *-*-* } 0 } */ #include "../../gcc.dg/di-longlong64-sync-1.c" Index: gcc.target/arm/di-longlong64-sync-withldrexd.c =================================================================== --- gcc.target/arm/di-longlong64-sync-withldrexd.c (revision 188249) +++ gcc.target/arm/di-longlong64-sync-withldrexd.c (working copy) @@ -3,8 +3,8 @@ /* { dg-options "-marm -std=gnu99" } */ /* { dg-require-effective-target arm_arch_v6k_ok } */ /* { dg-add-options arm_arch_v6k } */ -/* { 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 } */ /* { dg-message "file included" "In file included" { target *-*-* } 0 } */ #include "../../gcc.dg/di-longlong64-sync-1.c"