diff mbox series

[obvious] testsuite: Skip arm/pure-code tests for arm*-*-uclinuxfdpiceabi

Message ID 1597914036-25423-1-git-send-email-christophe.lyon@linaro.org
State New
Headers show
Series [obvious] testsuite: Skip arm/pure-code tests for arm*-*-uclinuxfdpiceabi | expand

Commit Message

Christophe Lyon Aug. 20, 2020, 9 a.m. UTC
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.

Committed as obvious.

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 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp b/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp
index fabebe1a..cf3664a 100644
--- a/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp
+++ b/gcc/testsuite/gcc.target/arm/pure-code/pure-code.exp
@@ -16,6 +16,12 @@ 
 
 # 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
-#}
+}