[committed] [testsuite][arm] Force use of -mfloat-abi=softfp in asm-flag-4.c

Christophe Lyon christophe.lyon@linaro.org
Thu Nov 28 11:27:00 GMT 2019


Hi,

I've just committed the patch below as r278804. It avoids annoying
failures on asm-flag-4.c when the compiler is configured
--with-float=hard.

2019-11-28  Christophe Lyon  <christophe.lyon@linaro.org>

        * gcc.target/arm/asm-flag-4.c: Use -mfloat-abi=softfp.

Index: gcc/testsuite/gcc.target/arm/asm-flag-4.c
===================================================================
--- gcc/testsuite/gcc.target/arm/asm-flag-4.c   (revision 278803)
+++ gcc/testsuite/gcc.target/arm/asm-flag-4.c   (revision 278804)
@@ -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)
 {

Christophe



More information about the Gcc-patches mailing list