From 9467fbc0ff8c06ef8eb2e96fa399734758620a8f Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 27 May 2019 20:06:22 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/i386/pr22076.c | 2 ++ 2 files changed, 7 insertions(+) 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 -- 2.30.2