From: Christophe Lyon Date: Thu, 20 Aug 2020 08:51:01 +0000 (+0000) Subject: testsuite: Skip arm/pure-code tests for arm*-*-uclinuxfdpiceabi X-Git-Tag: basepoints/gcc-12~5479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f678b4c20bb4e3adef7498aacc5519dfe78a894;p=thirdparty%2Fgcc.git testsuite: Skip arm/pure-code tests for arm*-*-uclinuxfdpiceabi 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 gcc/testsuite/ * gcc.target/arm/pure-code/pure-code.exp: Skip for arm*-*-uclinuxfdpiceabi. Fix missing closing bracket. --- 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 fabebe1a65f9..cf3664a06b87 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 -#} +}