summaryrefslogtreecommitdiff
path: root/gcc/testsuite/lib/target-supports.exp
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-05 14:56:35 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-05 14:56:35 +0000
commit1ae1041db2bf2315769e0b18e797d9bbeb8bcd88 (patch)
tree72021f8cf0c9876122b4e5b4379a5ba526aabfe4 /gcc/testsuite/lib/target-supports.exp
parentf325ee25b8c49208b155e168dc0025dda6860fbc (diff)
downloadgcc-1ae1041db2bf2315769e0b18e797d9bbeb8bcd88.tar.gz
gcc/testsuite/
PR target/52125 * lib/target-supports.exp (check_effective_target_mips_rel): New. * gcc.dg/pr48774.c: Skip on MIPS REL targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r--gcc/testsuite/lib/target-supports.exp14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index ca101438cc8..518d654ee90 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -910,6 +910,20 @@ proc check_effective_target_mips_llsc { } {
}]
}
+# Return true if the target is a MIPS target that uses in-place relocations.
+
+proc check_effective_target_mips_rel { } {
+ if { ![istarget mips*-*-*] } {
+ return 0
+ }
+ return [check_no_compiler_messages mips_rel object {
+ #if (defined _ABIN32 && _MIPS_SIM == _ABIN32) \
+ || (defined _ABI64 && _MIPS_SIM == _ABI64)
+ #error FOO
+ #endif
+ }]
+}
+
# Return 1 if the current multilib does not generate PIC by default.
proc check_effective_target_nonpic { } {