mips.exp (mips-dg-options): Test for mabicalls rather than addressing!=absolute when...
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 31 Jul 2013 18:33:50 +0000 (18:33 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 31 Jul 2013 18:33:50 +0000 (18:33 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/mips.exp

index 905518d168d92da7b9c9b678a6350ed3ad7d8af9..6a02f1b70e482b8da4fe43c0470135da26ad0ca7 100644 (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
index f648f0736593863c0a8f349b679c5c8422d501cd..1f0d0d6223f218de9c6ed5ed028f67c6bf53c4da 100644 (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"