[ARM/FDPIC v6 16/24] [ARM][testsuite] FDPIC: Skip tests that don't work in PIC mode
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 10 Sep 2019 08:04:00 +0000 (10:04 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 10 Sep 2019 08:04:00 +0000 (10:04 +0200)
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

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/anon5.C
gcc/testsuite/gcc.target/arm/eliminate.c

index 6c94bea6131a61eb73072847b0c9acc183951a42..97c14f9381bc843229f671764b12be6328bc401d 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
index ee4601e270e0b6b6bd0a306f8e6fc11ac9d8cd78..dadd92ef9e4a1126c27c298b23af4ad40e698149 100644 (file)
@@ -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" } */
index f254dd811d2a1ebeb287c2d23c7e47aeecaa654e..299d4df70964d6c5517cbe7c7fa4a5f8c45c7ecd 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { nonpic } } } */
 /* { dg-options "-O2" }  */
 
 struct X