From 26a591f2a47e1238951cce42e1a14c05ee166d7e Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 2 Feb 2020 19:53:24 +0000 Subject: [PATCH] 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 * 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 + + * gcc.target/powerpc/darwin-abi-12.c: Add '-fcommon' to the + options. + 2020-02-02 Vladimir Makarov 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.30.2