diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-08-25 15:28:20 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-08-25 15:28:20 +0000 |
commit | 1203357e1d15ae7d3bbc023230b395279026c424 (patch) | |
tree | 17f4270b6875f12d9be6966fcfb775a351f13545 /gcc/testsuite/lib/target-supports.exp | |
parent | 562741357bda00dc3f48d91f7460ffe73b7db941 (diff) |
svn merge -r130397:139561 svn+ssh://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branchredhat/fc6-4_1-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/fc6-4_1-branch@139562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 10 |
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 } { |