* gas/mips/mips.exp: Simplify enabling of MIPS16 testing.
authorMaciej W. Rozycki <macro@linux-mips.org>
Sun, 24 Oct 2010 10:54:31 +0000 (10:54 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Sun, 24 Oct 2010 10:54:31 +0000 (10:54 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/mips.exp

index 5724ab007e7dee786e5c8782157ef927b5e10839..ab204d928bcba7bc68285b2b028abacb98ac7429 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-24  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * gas/mips/mips.exp: Simplify enabling of MIPS16 testing.
+
 2010-10-24  Maciej W. Rozycki  <macro@linux-mips.org>
 
        * gas/mips/at-1.d: Handle ECOFF relocations.
index d4f447b716735c8a9184402d97298ccac8b8d147..3fb500389f4d2bb982451d08b538262e244214b8 100644 (file)
@@ -419,12 +419,12 @@ if { [istarget mips*-*-vxworks*] } {
     run_dump_test "vxworks1-el"
     run_dump_test "vxworks1-xgot-el"
 } elseif { [istarget mips*-*-*] } {
-    set no_mips16 0
     set elf [expr [istarget *-*-elf*] || [istarget *-*-irix5*] || [istarget *-*-irix6* ] || [istarget *-*-linux*] || [istarget *-*-netbsd*] ]
     set ecoff [expr [istarget *-*-ecoff*] || [istarget *-*-ultrix*] || [istarget *-*-irix\[1-4\]*] ]
     set aout [expr [istarget *-*-bsd*] || [istarget *-*-openbsd*] ]
     set addr32 [expr [istarget mipstx39*-*-*] || [istarget mips-*-linux*] || [istarget mipsel-*-linux*] || [istarget mips*-*-ecoff]]
     set has_newabi [expr [istarget *-*-irix6*] || [istarget mips64*-*-linux*]]
+    set no_mips16 [expr !$elf]
 
     if { [istarget "mips*-*-*linux*"] || [istarget "mips*-sde-elf*"] } then {
        set tmips "t"
@@ -436,9 +436,6 @@ if { [istarget mips*-*-vxworks*] } {
     } {
        set el ""
     }
-    if { $ecoff } {
-       set no_mips16 1
-    }
     if { $no_mips16 } {
        mips_arch_destroy mips16
     }
This page took 0.034355 seconds and 4 git commands to generate.