When I was messing with TLS tests, I noticed that there's currently no
effective target keyword for alias support. This patch adds that. OK
for trunk?
Jason
commit 0737064c6a0d9f33c75d09d94db9bca1eb4053ca
Author: Jason Merrill <ja...@redhat.com>
Date: Sat Jan 19 00:09:28 2013 -0500
* lib/target-supports.exp (check_effective_target_alias): New.
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 { } {