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 sell...@mips.com 2012-09-26 Steve Ellcey <sell...@mips.com> PR c/37303 * gcc.dg/pr37303.c: Check for rdata or rodata. 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} };