diff mbox series

[obvious] testsuite: Remove test for arm32 in arm_soft_ok

Message ID 1597914861-25862-1-git-send-email-christophe.lyon@linaro.org
State New
Headers show
Series [obvious] testsuite: Remove test for arm32 in arm_soft_ok | expand

Commit Message

Christophe Lyon Aug. 20, 2020, 9:14 a.m. UTC
There is no reason to check for arm32 when checking for
-mfloat=abi-soft support. Instead this implies skipping some tests
when targetting a thumb-1 cpu, while they pass.

This patch removes the arm32 check, and uses the same skeleton as
arm_softfp_ok and arm_hard_ok.

Committed as obvious.

2020-08-20  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/testsuite/
	* lib/target-supports.exp (arm_soft_ok): Remove arm32 check.
---
 gcc/testsuite/lib/target-supports.exp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f223fc6..c24330a 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -3639,13 +3639,11 @@  proc check_effective_target_arm_vect_no_misalign { } {
 # multilibs may be incompatible with this option.
 
 proc check_effective_target_arm_soft_ok { } {
-    if { [check_effective_target_arm32] } {
-	return [check_no_compiler_messages arm_soft_ok executable {
-	    int main() { return 0;}
+    return [check_no_compiler_messages arm_soft_ok object {
+	#include <stdint.h>
+	int dummy;
+	int main (void) { return 0; }
 	} "-mfloat-abi=soft"]
-    } else {
-	return 0
-    }
 }
 
 # Return 1 if this is an ARM target supporting -mfpu=vfp with an