diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2019-11-21 20:08:57 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-11-21 20:08:57 +0000 |
commit | d2993abd39aafb807d5d726f253c7ffe8af6fa41 (patch) | |
tree | be7b4d593d840c8e2e5278878a0e81c5076d15be /gcc | |
parent | ee4072114b06ea43ab7b11289d92407b390bea3c (diff) | |
download | gcc-d2993abd39aafb807d5d726f253c7ffe8af6fa41.zip gcc-d2993abd39aafb807d5d726f253c7ffe8af6fa41.tar.gz gcc-d2993abd39aafb807d5d726f253c7ffe8af6fa41.tar.bz2 |
[Darwin, testsuite] Update tests for common section use.
These two tests are explicitly testing the use of specific
sections or assembler directives for data that is placed in
common. Append -fcommon to the flags to restore them.
gcc/testsuite/ChangeLog:
2019-11-21 Iain Sandoe <iain@sandoe.co.uk>
* gcc.dg/darwin-comm.c: Add -fcommon to compile flags.
* gcc.dg/darwin-sections.c: Likewise.
From-SVN: r278596
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-comm.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/darwin-sections.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 ... */ |