diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-08-04 12:16:10 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2019-08-04 12:16:10 +0000 |
commit | 28a2bdaa76958d8028a1b5f5d453716e7b295d25 (patch) | |
tree | 7f7703088709f09f3e47c9553ce764b095842ae5 | |
parent | 9fddac12b7af20757c87264f40115e9ee680195c (diff) |
Darwin, testsuite, backport fix for pr71694.
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-9-branch@274079 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/pr71694.C | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1b9860a85e..b798fc8dd1e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -3,6 +3,13 @@ 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. + 2019-06-13 Iain Sandoe <iain@sandoe.co.uk> + * gcc.dg/darwin-minversion-1.c: Use compile rather than link/run. * gcc.dg/darwin-minversion-2.c: Likewise. diff --git a/gcc/testsuite/g++.dg/pr71694.C b/gcc/testsuite/g++.dg/pr71694.C index 0a8baf230bf..5b59f879fbf 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() {} |