From: Christophe Lyon Date: Thu, 28 Nov 2019 09:16:55 +0000 (+0000) Subject: [testsuite][arm] Force use of -mfloat-abi=softfp in asm-flag-4.c X-Git-Tag: misc/cutover-git~878 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d68f5edfaf04b5efb4b1c3eb2f016f6713357b10;p=thirdparty%2Fgcc.git [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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5a06a161c41..969c8bda3691 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 8b3eac1320bb..75378cc89b09 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) {