From: Janis Johnson Date: Fri, 12 Oct 2012 19:33:28 +0000 (+0000) Subject: target-supports.exp (check_effective_target_arm_hard_vfp_ok): Return 0 if already... X-Git-Tag: misc/gccgo-go1_1_2~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7fdcdc877889bf4056eb595cfe503bdadfcecc6;p=thirdparty%2Fgcc.git 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 --- 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"]