From edcd09269da1bc2d542e699bdaa3bc5527eee346 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 21 Jan 2013 15:49:21 +0000 Subject: [PATCH] * lib/target-supports.exp (check_effective_target_alias): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195338 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/lib/target-supports.exp | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c3543747f2d..add76c91cfa 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-01-21 Jason Merrill + + * lib/target-supports.exp (check_effective_target_alias): New. + 2013-01-20 Jack Howarth PR debug/53235 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0b11817ff61..8b2fa29d7d1 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 { } { -- 2.11.4.GIT