[ARM/FDPIC v6 22/24] [ARM][testsuite] FDPIC: Skip tests that require -static support
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 10 Sep 2019 08:10:41 +0000 (10:10 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 10 Sep 2019 08:10:41 +0000 (10:10 +0200)
Since FDPIC does not support -static, skip the related tests.

2019-09-10  Christophe Lyon  <christophe.lyon@st.com>

gcc/testsuite/
* lib/target-supports.exp (check_effective_target_static): Disable
for ARM FDPIC target.

From-SVN: r275583

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 6b62d88dcdb6393dfb82d9f35799ac7e63dc1dc4..9db40e4839b82312fa0dbde9747a1a91783151d7 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
+
+       * lib/target-supports.exp (check_effective_target_static): Disable
+       for ARM FDPIC target.
+
 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
 
        * gcc.target/arm/pr43698.c (bswap_32): Rename as my_bswap_32.
index 51677cc3e167cf62c37b9843521d0f569a9fc0f1..4f7d6cbdd423924855c92c2a9949f3cb35b1f25a 100644 (file)
@@ -1087,6 +1087,9 @@ proc check_effective_target_pe_aligned_commons {} {
 
 # Return 1 if the target supports -static
 proc check_effective_target_static {} {
+    if { [istarget arm*-*-uclinuxfdpiceabi] } {
+       return 0;
+    }
     return [check_no_compiler_messages static executable {
        int main (void) { return 0; }
     } "-static"]