From d68f5edfaf04b5efb4b1c3eb2f016f6713357b10 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Thu, 28 Nov 2019 09:16:55 +0000 Subject: [PATCH] [testsuite][arm] Force use of -mfloat-abi=softfp in asm-flag-4.c The asm-flag-4.c test forces the generation of Thumb code for armv4t, which is not supported when using the 'hard' FP ABI. This patch ensures the test uses -mfloat-abi=softfp safely, to avoid irrelevant failures. 2019-11-28 Christophe Lyon * gcc.target/arm/asm-flag-4.c: Use -mfloat-abi=softfp. From-SVN: r278804 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/arm/asm-flag-4.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5a06a161c4..969c8bda369 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-11-28 Christophe Lyon + + * gcc.target/arm/asm-flag-4.c: Use -mfloat-abi=softfp. + 2019-11-28 Jakub Jelinek PR tree-optimization/92691 diff --git a/gcc/testsuite/gcc.target/arm/asm-flag-4.c b/gcc/testsuite/gcc.target/arm/asm-flag-4.c index 8b3eac1320b..75378cc89b0 100644 --- a/gcc/testsuite/gcc.target/arm/asm-flag-4.c +++ b/gcc/testsuite/gcc.target/arm/asm-flag-4.c @@ -1,6 +1,8 @@ /* Test that we do not ice in thumb1 mode */ /* { dg-do compile } */ -/* { dg-options "-march=armv4t" } */ +/* { dg-require-effective-target arm_arch_v4t_thumb_ok } */ +/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */ +/* { dg-options "-march=armv4t -mfloat-abi=softfp" } */ void __attribute__((target("arm"))) f(char *out) { -- 2.30.2