From: Steve Ellcey Date: Wed, 26 Sep 2012 20:33:28 +0000 (+0000) Subject: re PR c/37303 (const compound initializers in structs are written to .data instead... X-Git-Tag: misc/gccgo-go1_1_2~626 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9f539414cada2e32492cd2f45f317e55c1bed8;p=thirdparty%2Fgcc.git re PR c/37303 (const compound initializers in structs are written to .data instead of .rodata) 2012-09-26 Steve Ellcey PR c/37303 * gcc.dg/pr37303.c: Check for rdata or rodata. From-SVN: r191772 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7c969498f59f..dfb60909b8a2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-09-26 Steve Ellcey + + PR c/37303 + * gcc.dg/pr37303.c: Check for rdata or rodata. + 2012-09-26 Christophe Lyon * gcc.target/arm/builtin-bswap16-1.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/pr37303.c b/gcc/testsuite/gcc.dg/pr37303.c index 434fc9d24adb..ea0827c91ffb 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} };