From: Iain Sandoe Date: Mon, 27 May 2019 20:06:22 +0000 (+0000) Subject: darwin, x86, testsuite - Match codegen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9467fbc0ff8c06ef8eb2e96fa399734758620a8f;p=gcc.git darwin, x86, testsuite - Match codegen For this test, we can match the codegen expected in the scan-asms by avoiding the extra indirection that's mandated by the ABI for common access and by using -mdynamic-no-pic for the 32b case. gcc/testsuite/ 2019-05-27 Iain Sandoe * gcc.target/i386/pr22076.c: Adjust options to match codegen expected by the scan-asms. From-SVN: r271670 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bed4287289f..89f20847160 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-05-27 Iain Sandoe + + * gcc.target/i386/pr22076.c: Adjust options to + match codegen expected by the scan-asms. + 2019-05-27 Eric Botcazou * gnat.dg/specs/array4.ads: New test. diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c index 6ce7696f237..427ffcd4920 100644 --- a/gcc/testsuite/gcc.target/i386/pr22076.c +++ b/gcc/testsuite/gcc.target/i386/pr22076.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fomit-frame-pointer -mmmx -mno-sse2" } */ +/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */ +/* { dg-additional-options "-mdynamic-no-pic" { target { ia32 && *-*-darwin* } } } */ #include