backport: target-supports.exp (check_effective_target_arm_hard_vfp_ok): Return 0 if already specifying -mfloat-abi other than hard.

Backport from mainline
	2012-10-12  Janis Johnson  <janisjo@codesourcery.com>

	* lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok):
	Return 0 if already specifying -mfloat-abi other than hard.

From-SVN: r195456
This commit is contained in:
Janis Johnson 2013-01-25 00:25:14 +00:00 committed by Janis Johnson
parent fc45b0e4df
commit aa04fc1043
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,11 @@
2013-01-24 Janis Johnson <janisjo@codesourcery.com>
Backport from mainline
2012-10-12 Janis Johnson <janisjo@codesourcery.com>
* lib/target-supports.exp (check_effective_target_arm_hard_vfp_ok):
Return 0 if already specifying -mfloat-abi other than hard.
Backport from mainline
2012-09-27 Janis Johnson <janisjo@codesourcery.com>

View File

@ -2062,6 +2062,7 @@ proc check_effective_target_arm_vfp_ok { } {
proc check_effective_target_arm_hard_vfp_ok { } {
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"]