From f7fdcdc877889bf4056eb595cfe503bdadfcecc6 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Fri, 12 Oct 2012 19:33:28 +0000 Subject: [PATCH] target-supports.exp (check_effective_target_arm_hard_vfp_ok): Return 0 if already specifying -mfloat-abi other than hard. * lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok): Return 0 if already specifying -mfloat-abi other than hard. From-SVN: r192409 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/lib/target-supports.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cabf57c9b6c7..2a107a3e1982 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-10-12 Janis Johnson + + * lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok): + Return 0 if already specifying -mfloat-abi other than hard. + 2012-10-12 Joe Seymour * gcc.dg/pr53060.c: Prune irrelevant warning. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 9098285267fc..f8e416c70908 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -2053,7 +2053,8 @@ proc check_effective_target_arm_vfp_ok { } { # options. proc check_effective_target_arm_hard_vfp_ok { } { - if { [check_effective_target_arm32] } { + if { [check_effective_target_arm32] + && ! [check-flags [list "" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" }]] } { return [check_no_compiler_messages arm_hard_vfp_ok executable { int main() { return 0;} } "-mfpu=vfp -mfloat-abi=hard"] -- 2.47.2