aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/target-supports.exp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-01-26 12:28:36 +0000
committerJakub Jelinek <jakub@redhat.com>2009-01-26 12:28:36 +0000
commitc58d0aab9cceb0437c13fb7d88dd9e82b48e82a1 (patch)
tree14d43b52ff28880a8caeb0a9611364fd576671cd /gcc/testsuite/lib/target-supports.exp
parent10d249b47119b4e4eecaa620188408e919d6449d (diff)
svn merge -r131256:139562 svn+ssh://gcc.gnu.org/svn/gcc/branches/redhat/fc6-4_1-branchredhat/fc5-4_1-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/fc5-4_1-branch@143674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r--gcc/testsuite/lib/target-supports.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index a08a6fa6d12..ff1bf20899d 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -499,6 +499,16 @@ proc check_effective_target_fpic { } {
return 0
}
+# Return 1 if the current multilib does not generate PIC by default.
+
+proc check_effective_target_nonpic { } {
+ return [check_no_compiler_messages nonpic assembly {
+ #if __PIC__ || __pic__
+ #error FOO
+ #endif
+ }]
+}
+
# Return true if iconv is supported on the target. In particular IBM1047.
proc check_iconv_available { test_what } {