[committed] testsuite,Darwin,PPC: Adjust darwin-abi-12.c for common section use.

Message ID 11D38FEB-3F33-4F8D-8820-A4B19DDB8750@sandoe.co.uk
State New
Headers show
Series
  • [committed] testsuite,Darwin,PPC: Adjust darwin-abi-12.c for common section use.
Related show

Commit Message

Iain Sandoe Feb. 2, 2020, 7:57 p.m.
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  <iain@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(+)

-- 
2.24.1

Patch

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  <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
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 */