Commit db9f5394 by Steve Ellcey Committed by Steve Ellcey

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
parent a67a73fd
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.
......
/* { 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} };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment