This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MIPS/GAS/test: Simplify MIPS16 enabling
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: binutils at sourceware dot org
- Date: Sun, 3 Oct 2010 20:41:45 +0100 (BST)
- Subject: [PATCH] MIPS/GAS/test: Simplify MIPS16 enabling
Hi,
MIPS16 testing should only be enabled for ELF. This change guarantees it
while simplifying the whole arrangement at the same time.
2010-10-03 Maciej W. Rozycki <macro@linux-mips.org>
gas/testsuite/
* gas/mips/mips.exp: Simplify MIPS16 enabling.
OK to apply?
Maciej
binutils-2.20.51-20100925-mips-gas-test-mips16.patch
Index: binutils-2.20.51/gas/testsuite/gas/mips/mips.exp
===================================================================
--- binutils-2.20.51.orig/gas/testsuite/gas/mips/mips.exp
+++ binutils-2.20.51/gas/testsuite/gas/mips/mips.exp
@@ -404,12 +404,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"
@@ -421,9 +421,6 @@ if { [istarget mips*-*-vxworks*] } {
} {
set el ""
}
- if { $ecoff } {
- set no_mips16 1
- }
if { $no_mips16 } {
mips_arch_destroy mips16
}