Message ID | 44014F5C-4CEC-43DE-B3A1-DBDF91E00928@sandoe.co.uk |
---|---|
State | New |
Headers | show |
Series | [Darwin,testsuite,committed] Update tests for common section use. | expand |
diff --git a/gcc/testsuite/gcc.dg/darwin-comm.c b/gcc/testsuite/gcc.dg/darwin-comm.c index a743fc6..ac892b0 100644 --- a/gcc/testsuite/gcc.dg/darwin-comm.c +++ b/gcc/testsuite/gcc.dg/darwin-comm.c @@ -1,4 +1,5 @@ /* { dg-do compile { target *-*-darwin[912]* } } */ +/* { dg-options "-fcommon" } */ /* { dg-final { scan-assembler ".comm\[ \t\]_foo,1,15" } } */ char foo __attribute__ ((aligned(32768))); diff --git a/gcc/testsuite/gcc.dg/darwin-sections.c b/gcc/testsuite/gcc.dg/darwin-sections.c index 79d48bd..276ffa3 100644 --- a/gcc/testsuite/gcc.dg/darwin-sections.c +++ b/gcc/testsuite/gcc.dg/darwin-sections.c @@ -1,5 +1,5 @@ /* { dg-do compile {target *-*-darwin* } } */ -/* { dg-options "-std=c99 -w" } */ +/* { dg-options "-std=c99 -w -fcommon" } */ /* This has been designed to give the same section usage for -m32 and -m64 - so don't put any ints or longs in it ... */