]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Darwin, testsuite, backport fix for pr71694.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 4 Aug 2019 12:16:10 +0000 (12:16 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sun, 4 Aug 2019 12:16:10 +0000 (12:16 +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-08-04  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: r274079

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

index f1b9860a85e5f6511daa66240edfbf7f28915d14..b798fc8dd1ec5a111489d0a50c05ed5624022a22 100644 (file)
@@ -1,3 +1,10 @@
+2019-08-04  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-08-04  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline.
index 0a8baf230bfeec51900b9fdd77d140d7c6fb4986..5b59f879fbf954c45cae6c02b435efc6a94abc6e 100644 (file)
@@ -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() {}