[Darwin, testsuite] - Fix pr71694 fail for m32.
Iain Sandoe
iain@sandoe.co.uk
Thu Jun 13 18:59:00 GMT 2019
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 <iain@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
More information about the Gcc-patches
mailing list