Hi,

Another in the series of amendments following the switch to 
default to no-common.

Tested on powerpc-darwin9,
applied to master,
thanks
Iain

------

This test explicitly tests for code generation that expects a
common section.

gcc/testsuite/ChangeLog:

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

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

---
 gcc/testsuite/ChangeLog                          | 5 +++++
 gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 779f1fbb457..05620402c8a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-02  Iain Sandoe  <i...@sandoe.co.uk>
+
+       * gcc.target/powerpc/darwin-abi-12.c: Add '-fcommon' to the
+       options.
+
 2020-02-02  Vladimir Makarov  <vmaka...@redhat.com>
 
        PR rtl-optimization/91333
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c 
b/gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c
index 5f5764368c1..e77969c2635 100644
--- a/gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c
+++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-12.c
@@ -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 */
-- 
2.24.1


Reply via email to