gcc/testsuite/
PR target/52125
* lib/target-supports.exp (check_effective_target_mips_rel): New.
* gcc.dg/pr48774.c: Skip on MIPS REL targets.
From-SVN: r183910
+2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
+
+ PR target/52125
+ * lib/target-supports.exp (check_effective_target_mips_rel): New.
+ * gcc.dg/pr48774.c: Skip on MIPS REL targets.
+
2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
* lib/target-supports.exp (check_effective_target_mips_llsc): New.
/* PR target/48774 */
/* { dg-do run } */
+/* { dg-skip-if "PR 52125" { mips_rel } { "*" } { "" } } */
/* { dg-options "-O2 -funroll-loops" } */
extern void abort (void);
}]
}
+# 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 { } {