From d414c91510bec4f640de29661062d5672a5684e8 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 22 Apr 2020 13:42:04 +0000 Subject: 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 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/doc/sourcebuild.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/doc') diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index c1642ba..b696120 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1971,6 +1971,14 @@ ARM Target supports options suitable for accessing the Q-bit manipulation intrinsics from @code{arm_acle.h}. Some multilibs may be incompatible with these options. +@item arm_softfp_ok +@anchor{arm_softfp_ok} +ARM target supports the @code{-mfloat-abi=softfp} option. + +@item arm_hard_ok +@anchor{arm_hard_ok} +ARM target supports the @code{-mfloat-abi=hard} option. + @end table @subsubsection AArch64-specific attributes -- cgit v1.1