testsuite,Darwin,PPC: Adjust darwin-abi-12.c for common section use.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 2 Feb 2020 19:53:24 +0000 (19:53 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 2 Feb 2020 19:53:24 +0000 (19:53 +0000)
This test explicitly tests for code generation that expects a
common section.

gcc/testsuite/ChangeLog:

2020-02-02  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/darwin-abi-12.c: Add '-fcommon' to the
options.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c

index 779f1fbb45708c3e600f38674bdb9335791bfe95..05620402c8a9809056577112c76cf6814f6ffeb6 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-02  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/powerpc/darwin-abi-12.c: Add '-fcommon' to the
+       options.
+
 2020-02-02  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/91333
index 5f5764368c1ebe4ef5966e0a8d2b7ddd9b9c5b4e..e77969c2635b3c4b4d31b0698172673efc95d433 100644 (file)
@@ -1,4 +1,6 @@
 /* { dg-do compile { target powerpc*-*-darwin* } } */
+/* This test explicitly checks for output that expects common.  */
+/* { dg-additional-options "-fcommon" { target powerpc*-*-darwin* } } */
 /* { dg-final { scan-assembler ".comm\[\t \]_x,12,2" } } */
 /* { dg-final { scan-assembler-not ".space 7" } } */
 /* PR 23071 */