[gcc/devel/ranger] testsuite, Darwin, PPC: Adjust darwin-abi-12.c for common section use.

Aldy Hernandez aldyh@gcc.gnu.org
Wed Jun 17 18:32:47 GMT 2020


https://gcc.gnu.org/g:26a591f2a47e1238951cce42e1a14c05ee166d7e

commit 26a591f2a47e1238951cce42e1a14c05ee166d7e
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sun Feb 2 19:53:24 2020 +0000

    testsuite,Darwin,PPC: Adjust darwin-abi-12.c for common section use.
    
    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.

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


More information about the Gcc-cvs mailing list