arm: Fix testisms introduced with fix for pr target/95646
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 14 Sep 2020 08:03:08 +0000 (09:03 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Tue, 15 Sep 2020 10:25:09 +0000 (11:25 +0100)
commit80297f897758f59071968ddff2a04a8d11481117
tree985ae7b5d0f9d7aaa8ea76a34b4fecc943d957d6
parentecc3135a4a264b66c163ef32e815a99746b81800
arm: Fix testisms introduced with fix for pr target/95646

This patch changes the test to use the effective-target machinery disables the
error message "ARMv8-M Security Extensions incompatible with selected FPU" when
-mfloat-abi=soft.
Further changes 'asm' to '__asm__' to avoid failures with '-std=' options.

gcc/ChangeLog:
2020-07-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
check +D32 for CMSE if -mfloat-abi=soft

gcc/testsuite/ChangeLog:
2020-07-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* gcc.target/arm/pr95646.c: Fix testism.
gcc/config/arm/arm.c
gcc/testsuite/gcc.target/arm/pr95646.c