testsuite: Skip arm/pure-code tests for arm*-*-uclinuxfdpiceabi
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 20 Aug 2020 08:51:01 +0000 (08:51 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 20 Aug 2020 08:56:57 +0000 (08:56 +0000)
FDPIC it uses PIC code, which is incompatible with -mpure-code, so we
want to skip these tests for arm*-*-uclinuxfdpiceabi.

This patch also fixes a typo where the final closing bracket was
commented out.

2020-08-20  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* gcc.target/arm/pure-code/pure-code.exp: Skip for
arm*-*-uclinuxfdpiceabi. Fix missing closing bracket.

gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp

index fabebe1a65f914c03ca7d7a9e25a008b9f685c92..cf3664a06b87526a19a5bcb5758f823c1e7f5636 100644 (file)
 
 # GCC testsuite for ARM's -mpure-code option, using the `dg.exp' driver.
 
+# Exit immediately if this is an ARM FDPIC target (it uses PIC code,
+# which is incompatible with -mpure-code).
+if [istarget arm*-*-uclinuxfdpiceabi] then {
+  return
+}
+
 # Load support procs.
 load_lib gcc-dg.exp
 
@@ -53,4 +59,4 @@ set LTO_TORTURE_OPTIONS ${saved-lto_torture_options}
 
 # All done.
 dg-finish
-#}
+}