From 19c6bc40f056f06c48819c838aec306037e9b76b Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 13 Jun 2019 18:32:32 +0000 Subject: [PATCH] Darwin, testsuite - Fix pr71694 fail for m32. This test fails for Darwin m32 because it's scanning for absence of an instruction that's validly used in PIC code. Fixed, in this case, by using non-PIC codegen. 2019-06-13 Iain Sandoe * g++.dg/pr71694.C: Use non-PIC codegen for Darwin m32. From-SVN: r272257 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/pr71694.C | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1761ae7a90b..759209468c1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-06-13 Iain Sandoe + + * g++.dg/pr71694.C: Use non-PIC codegen for Darwin m32. + 2019-06-13 Steven G. Kargl PR fortran/89344 diff --git a/gcc/testsuite/g++.dg/pr71694.C b/gcc/testsuite/g++.dg/pr71694.C index 0a8baf230bf..5b59f879fbf 100644 --- a/gcc/testsuite/g++.dg/pr71694.C +++ b/gcc/testsuite/g++.dg/pr71694.C @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-store-merging" } */ +/* { dg-additional-options "-fno-common -mdynamic-no-pic" { target { ia32 && { x86_64-*-darwin* i?86-*-darwin* } } } } */ struct B { B() {} -- 2.30.2