mips.exp (mips-dg-options): Test for mabicalls rather than addressing!=absolute when...

gcc/testsuite/
	* gcc.target/mips/mips.exp (mips-dg-options): Test for mabicalls
	rather than addressing!=absolute when deciding how to handle MIPS16
	when the test forces an ABI.

From-SVN: r201380
This commit is contained in:
Richard Sandiford 2013-07-31 18:33:50 +00:00 committed by Richard Sandiford
parent 0b57d5fa43
commit b26e3fc277
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-07-31 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/mips.exp (mips-dg-options): Test for mabicalls
rather than addressing!=absolute when deciding how to handle MIPS16
when the test forces an ABI.
2013-07-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57673

View file

@ -1164,7 +1164,7 @@ proc mips-dg-options { args } {
if { [mips_using_mips16_p options]
&& ![mips_same_option_p $abi "-mabi=32"]
&& ![mips_same_option_p $abi "-mabi=o64"]
&& (![mips_have_option_p options "addressing=absolute"]
&& ([mips_have_option_p options "-mabicalls"]
|| [mips_have_option_p options "-mhard-float"]) } {
if { [mips_test_option_p options mips16] } {
mips_make_test_option options "addressing=absolute"