]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Darwin, testsuite] Fix pr71694 fail for m32.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Sep 2019 11:48:24 +0000 (11:48 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Tue, 17 Sep 2019 11:48:24 +0000 (11:48 +0000)
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-09-17  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>

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

From-SVN: r275801

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr71694.C

index a34be9e5d3631545eaaa3338bf0f5a26592a1853..ecc29fe28fc67fd326f382b21c31885174e9bc23 100644 (file)
@@ -1,3 +1,10 @@
+2019-09-17  Iain Sandoe  <iain@sandoe.co.uk>
+
+       Backport from mainline.
+       2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * g++.dg/pr71694.C: Use non-PIC codegen for Darwin m32.
+
 2019-09-16  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index e79f62aeb13a3e4863404459a9ad77ee3c025707..5261dbbfb0291587d0e13e74b39e8393b7ec064e 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
+/* { dg-additional-options "-fno-common -mdynamic-no-pic" { target { ia32 && { x86_64-*-darwin* i?86-*-darwin* } } } } */
 
 struct B {
     B() {}