Patchwork [testsuite] gcc.target/arm: make message check lines unique in test summary

login
register
mail settings
Submitter Janis Johnson
Date June 12, 2012, 2:40 a.m.
Message ID <4FD6AC03.2050505@mentor.com>
Download mbox | patch
Permalink /patch/164316/
State New
Headers show

Comments

Janis Johnson - June 12, 2012, 2:40 a.m.
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  <janisjo@codesourcery.com>

	* gcc.target/arm/di-longlong64-sync-withhelpers.c: Likewise.
	* gcc.target/arm/di-longlong64-sync-withldrexd.c: Likewise.
Mike Stump - June 12, 2012, 5:03 p.m.
On Jun 11, 2012, at 7:40 PM, Janis Johnson wrote:
> 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.

> OK for mainline?

Ok.

Patch

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"