]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: improve compatibility of gcc.target/arm/optional_thumb-*.c
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 6 Nov 2023 15:53:55 +0000 (15:53 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:56 +0000 (14:15 +0000)
commit511e5938d7cf640c403b27aa3ea32168c367c523
tree8bb41284e7903d9a51d6bc7084eab0f05e890f63
parent5bc424925a3678d7821ab3512f49a66e98085768
arm: testsuite: improve compatibility of gcc.target/arm/optional_thumb-*.c

These tests deliberately pass invalid option combinations to check
that the compiler is generating the correct diagnostic.  Nevertheless,
we can improve their compatibility with other testsuite options.  For
optional_thumb-1.c we use a soft-float ABI, while for
optional_thumb2.c we use arm_arch_v7em as the target architecture,
then set the architecture manually.

gcc/testsuite:

* gcc.target/arm/optional_thumb-1.c: Force a soft-float ABI.
* gcc.target/arm/optional_thumb-3.c: Check for armv7e-m compatibility,
then set the architecture explicitly.
gcc/testsuite/gcc.target/arm/optional_thumb-1.c
gcc/testsuite/gcc.target/arm/optional_thumb-3.c