diff options
author | Jason Merrill <jason@redhat.com> | 2013-01-21 10:49:21 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2013-01-21 10:49:21 -0500 |
commit | f6c23342da3e640e0d4fb36c2e74eb9c2f418894 (patch) | |
tree | 8f3516f91887bee7e89769473c9a7208a6a17d2b /gcc/testsuite | |
parent | e8bb7d68e0f03f483133fd63f4ccc1fd95180d9e (diff) | |
download | gcc-f6c23342da3e640e0d4fb36c2e74eb9c2f418894.zip gcc-f6c23342da3e640e0d4fb36c2e74eb9c2f418894.tar.gz gcc-f6c23342da3e640e0d4fb36c2e74eb9c2f418894.tar.bz2 |
* lib/target-supports.exp (check_effective_target_alias): New.
From-SVN: r195338
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c354374..add76c9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0b11817..8b2fa29 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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 { } { |