devirt2.C: Add -mno-abicalls for MIPS.

gcc/testsuite/
	* g++.dg/opt/devirt2.C: Add -mno-abicalls for MIPS.

From-SVN: r182787
This commit is contained in:
Richard Sandiford 2012-01-02 10:57:23 +00:00 committed by Richard Sandiford
parent 8b61e8631a
commit ccd0ce1148
2 changed files with 6 additions and 0 deletions

View 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.

View 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.