testsuite: [arm] Add arm_softfp_ok and arm_hard_ok effective targets.
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:42:04 +0000 (13:42 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 22 Apr 2020 13:56:51 +0000 (13:56 +0000)
commitd414c91510bec4f640de29661062d5672a5684e8
tree90f14632fbdcfa3f4189849cfad6c4dffa764169
parenta87e0cba839bb4a2daca34896a0760258027b38e
testsuite: [arm] Add arm_softfp_ok and arm_hard_ok effective targets.

For arm-linux-gnueabi* targets, a toolchain cannot support the
float-abi opposite to the one it has been configured for: since glibc
does not support such multilibs, we end up lacking gnu/stubs-*.h when
including stdint.h for instance.

This patch introduces two new effective targets to detect whether we
can compile tests with -mfloat-abi=softfp or -mfloat-abi=hard.

This enables to make such tests unsupported rather than fail.

2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* lib/target-supports.exp (arm_softfp_ok): New effective target.
(arm_hard_ok): Likewise.

gcc/
* doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp