diff mbox

[testsuite,pr37303] Fix testcase on MIPS

Message ID 962f30ee-64b9-4144-9157-bee6dd9c0e8d@EXCHHUB01.MIPS.com
State New
Headers show

Commit Message

Steve Ellcey Sept. 26, 2012, 4:07 p.m. UTC
The test gcc.dg/pr37303.c fails on mips because mips uses rdata instead
of rodata and the test scans for rodata in the assembly file.  Rather
then make an special check on mips I modified the test to scan for rodata
or rdata on any plaforms.

Tested on MIPS, OK to checkin?

Steve Ellcey
sellcey@mips.com


2012-09-26  Steve Ellcey  <sellcey@mips.com>

	PR c/37303
	* gcc.dg/pr37303.c: Check for rdata or rodata.

Comments

Richard Sandiford Sept. 26, 2012, 5:52 p.m. UTC | #1
"Steve Ellcey " <sellcey@mips.com> writes:
> 2012-09-26  Steve Ellcey  <sellcey@mips.com>
>
> 	PR c/37303
> 	* gcc.dg/pr37303.c: Check for rdata or rodata.

OK, thanks.

Richard
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.dg/pr37303.c b/gcc/testsuite/gcc.dg/pr37303.c
index 434fc9d..ea0827c 100644
--- a/gcc/testsuite/gcc.dg/pr37303.c
+++ b/gcc/testsuite/gcc.dg/pr37303.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile { target *-*-elf* *-*-linux-gnu* } } */
 /* { dg-options "-std=c99" }
-/* { dg-final { scan-assembler "rodata" } } */
+/* { dg-final { scan-assembler "rdata|rodata" } } */
 
 struct S { const int *x; } s = { (const int[]){1, 2, 3} };