diff options
author | Christophe Lyon <christophe.lyon@st.com> | 2019-09-10 10:04:00 +0200 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2019-09-10 10:04:00 +0200 |
commit | ee442e15c0c7f26174a857aa5bbbfc9cbbfdbcef (patch) | |
tree | 1d728a63346d8d9a60a6284a84bdeb0a5eab5590 /gcc | |
parent | 1976a0b2392841a519788698f0fb9851bba6af94 (diff) | |
download | gcc-ee442e15c0c7f26174a857aa5bbbfc9cbbfdbcef.zip gcc-ee442e15c0c7f26174a857aa5bbbfc9cbbfdbcef.tar.gz gcc-ee442e15c0c7f26174a857aa5bbbfc9cbbfdbcef.tar.bz2 |
[ARM/FDPIC v6 16/24] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode
Some tests fail on arm*-*-uclinuxfdpiceabi because it generates PIC
code and they don't support it: skip them. They also fail on
arm*-linux* when forcing -fPIC.
2019-09-10 Christophe Lyon <christophe.lyon@st.com>
gcc/testsuite/
* gcc.target/arm/eliminate.c: Accept only nonpic targets.
* g++.dg/other/anon5.C: Likewise.
From-SVN: r275578
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/anon5.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/eliminate.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c94bea..97c14f9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ 2019-09-10 Christophe Lyon <christophe.lyon@st.com> + + * gcc.target/arm/eliminate.c: Accept only nonpic targets. + * g++.dg/other/anon5.C: Likewise. + +2019-09-10 Christophe Lyon <christophe.lyon@st.com> Mickaël Guêné <mickael.guene@st.com> * gcc.target/arm/interrupt-1.c: Add scan-assembler pattern for diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index ee4601e..dadd92e 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -1,5 +1,6 @@ // PR c++/34094 // { dg-do link { target { ! { *-*-darwin* *-*-hpux* *-*-solaris2.* } } } } +// { dg-require-effective-target nonpic } // { dg-options "-gdwarf-2" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ diff --git a/gcc/testsuite/gcc.target/arm/eliminate.c b/gcc/testsuite/gcc.target/arm/eliminate.c index f254dd8..299d4df 100644 --- a/gcc/testsuite/gcc.target/arm/eliminate.c +++ b/gcc/testsuite/gcc.target/arm/eliminate.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target { nonpic } } } */ /* { dg-options "-O2" } */ struct X |