Patchwork [testsuite,pr37303] Fix testcase on MIPS

login
register
mail settings
Submitter Steve Ellcey
Date Sept. 26, 2012, 4:07 p.m.
Message ID <962f30ee-64b9-4144-9157-bee6dd9c0e8d@EXCHHUB01.MIPS.com>
Download mbox | patch
Permalink /patch/187117/
State New
Headers show

Comments

Steve Ellcey - Sept. 26, 2012, 4:07 p.m.
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.
Richard Sandiford - Sept. 26, 2012, 5:52 p.m.
"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

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} };