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.

tested on x86_64-darwin16, x86_64-linux-gnu (m32, m64).
applied to mainline
thanks
Iain

2019-06-13  Iain Sandoe  <i...@sandoe.co.uk>

        * g++.dg/pr71694.C: Use non-PIC codegen for Darwin m32.

diff --git a/gcc/testsuite/g++.dg/pr71694.C b/gcc/testsuite/g++.dg/pr71694.C
index 0a8baf230b..5b59f879fb 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.17.1


Reply via email to