re PR c/37303 (const compound initializers in structs are written to .data instead of .rodata)

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

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

From-SVN: r191772
This commit is contained in:
Steve Ellcey 2012-09-26 20:33:28 +00:00 committed by Steve Ellcey
parent a67a73fd0c
commit db9f539414
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-09-26 Steve Ellcey <sellcey@mips.com>
PR c/37303
* gcc.dg/pr37303.c: Check for rdata or rodata.
2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/builtin-bswap16-1.c: New testcase.

View File

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