aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-01-02 10:57:23 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2012-01-02 10:57:23 +0000
commitccd0ce1148833319e131918c5c0ea77e1aec18c2 (patch)
treef3df0eccef79ee5c83b2b83ee024663e732f7c9c
parent8b61e8631a84fb0bc94ba03f04ac949f87402f85 (diff)
downloadgcc-ccd0ce1148833319e131918c5c0ea77e1aec18c2.zip
gcc-ccd0ce1148833319e131918c5c0ea77e1aec18c2.tar.gz
gcc-ccd0ce1148833319e131918c5c0ea77e1aec18c2.tar.bz2
devirt2.C: Add -mno-abicalls for MIPS.
gcc/testsuite/ * g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS. From-SVN: r182787
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/opt/devirt2.C2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 77ad562..2cae15a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS.
+
2012-01-02 Revital Eres <revital.eres@linaro.org>
* gcc.dg/sms-11.c: New file.
diff --git a/gcc/testsuite/g++.dg/opt/devirt2.C b/gcc/testsuite/g++.dg/opt/devirt2.C
index 1198abd..092fd68 100644
--- a/gcc/testsuite/g++.dg/opt/devirt2.C
+++ b/gcc/testsuite/g++.dg/opt/devirt2.C
@@ -3,6 +3,8 @@
/* Using -mshort-calls avoids loading the function addresses in
registers and thus getting the counts wrong. */
// { dg-additional-options "-mshort-calls" {target epiphany-*-*} }
+// Using -mno-abicalls avoids a R_MIPS_JALR .reloc.
+// { dg-additional-options "-mno-abicalls" { target mips*-*-* } }
// { dg-final { scan-assembler-times "xyzzy" 2 { target { ! { alpha*-*-* hppa*-*-* ia64*-*-hpux* sparc*-*-* } } } } }
// The IA64 and HPPA compilers generate external declarations in addition
// to the call so those scans need to be more specific.