aboutsummaryrefslogtreecommitdiff
path: root/gcc/selftest.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@linaro.org>2018-12-19 15:01:41 +0000
committerThomas Preud'homme <thopre01@gcc.gnu.org>2018-12-19 15:01:41 +0000
commitec5e681485a3a069ccf0316dacba4ce6fa348c6b (patch)
treef105c2e91ef6c469946b6d847eff2c2502d463cc /gcc/selftest.h
parenta152954ea4fee516e83b4f75a17818fbc8d555bb (diff)
downloadgcc-ec5e681485a3a069ccf0316dacba4ce6fa348c6b.zip
gcc-ec5e681485a3a069ccf0316dacba4ce6fa348c6b.tar.gz
gcc-ec5e681485a3a069ccf0316dacba4ce6fa348c6b.tar.bz2
[ARM] Do softfloat when -mfpu set, -mfloat-abi=softfp
FP instructions are only enabled for TARGET_32BIT and TARGET_HARD_FLOAT but GCC only gives an error when TARGET_HARD_FLOAT is true and -mfpu is not set. Among other things, it makes some of the cmse tests (eg. gcc.target/arm/cmse/baseline/softfp.c) fail when targeting -march=armv8-m.base -mcmse -mfpu=<something> -mfloat-abi=softfp. This commit adds an extra check for TARGET_32BIT to TARGET_HARD_FLOAT such that it is false on TARGET_THUMB1 targets even when a FPU is specified. 2018-12-19 thomas Preud'homme <thomas.preudhomme@linaro.org> gcc/ * config/arm/arm.h (TARGET_HARD_FLOAT): Restrict to TARGET_32BIT targets. * config/arm/arm.c (output_return_instruction): Only check TARGET_HARD_FLOAT to decide whether FP instructions are available. gcc/testsuite/ * gcc.target/arm/cmse/baseline/softfp.c: Force an FPU. From-SVN: r267270
Diffstat (limited to 'gcc/selftest.h')
0 files changed, 0 insertions, 0 deletions