Commit 1ea8c961 by Christophe Lyon Committed by Christophe Lyon

[ARM,testsuite] Skip copysign_softfloat_1.c on hard-float targets

gcc/testsuite/

2017-11-10  Christophe Lyon  <christophe.lyon@linaro.org>

	* lib/target-supports.exp (check_effective_target_arm_soft_ok):
	New function.
	* gcc.target/arm/copysign_softfloat_1.c: Require arm_soft_ok
	effective target.

From-SVN: r254626
parent df3c2945
2017-11-10 Christophe Lyon <christophe.lyon@linaro.org>
* lib/target-supports.exp (check_effective_target_arm_soft_ok):
New function.
* gcc.target/arm/copysign_softfloat_1.c: Require arm_soft_ok
effective target.
2017-11-10 Paul Thomas <pault@gcc.gnu.org>
PR fortran/82934
......
/* { dg-do run } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-require-effective-target arm_soft_ok } */
/* { dg-skip-if "skip override" { *-*-* } { "-mfloat-abi=softfp" "-mfloat-abi=hard" } { "" } } */
/* { dg-options "-O2 -mfloat-abi=soft --save-temps" } */
extern void abort (void);
......
......@@ -3414,6 +3414,19 @@ proc check_effective_target_arm_vect_no_misalign { } {
}
# Return 1 if this is an ARM target supporting -mfloat-abi=soft. Some
# 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;}
} "-mfloat-abi=soft"]
} else {
return 0
}
}
# Return 1 if this is an ARM target supporting -mfpu=vfp
# -mfloat-abi=softfp. Some multilibs may be incompatible with these
# options.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment