[Darwin,testsuite] - Fix pr71694 fail for m32.

Message ID 92A510DD-6BE0-4C5B-8EA9-BC184D818ED5@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,testsuite] - Fix pr71694 fail for m32.
Related show

Commit Message

Iain Sandoe June 13, 2019, 6:59 p.m.
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.

-- 
2.17.1

Patch

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() {}