* lib/target-supports.exp (check_effective_target_alias): New.

From-SVN: r195338
This commit is contained in:
Jason Merrill 2013-01-21 10:49:21 -05:00 committed by Jason Merrill
parent e8bb7d68e0
commit f6c23342da
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-01-21 Jason Merrill <jason@redhat.com>
* lib/target-supports.exp (check_effective_target_alias): New.
2013-01-20 Jack Howarth <howarth@bromo.med.uc.edu>
PR debug/53235

View File

@ -354,6 +354,16 @@ proc check_alias_available { } {
return $alias_available_saved
}
# Returns 1 if the target toolchain supports strong aliases, 0 otherwise.
proc check_effective_target_alias { } {
if { [check_alias_available] < 2 } {
return 0
} else {
return 1
}
}
# Returns 1 if the target toolchain supports ifunc, 0 otherwise.
proc check_ifunc_available { } {