devirt2.C: Add -mno-abicalls for MIPS.
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 2 Jan 2012 10:57:23 +0000 (10:57 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 2 Jan 2012 10:57:23 +0000 (10:57 +0000)
gcc/testsuite/
* g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS.

From-SVN: r182787

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/devirt2.C

index 77ad56205ed85a62a3ad83f21f730e94066e8d34..2cae15a563bdf1c9deb191de62aa898554093089 100644 (file)
@@ -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.
index 1198abdd776edb57251172880ec356b163cac7aa..092fd686a6755b289d42be07930c178657131e9f 100644 (file)
@@ -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.