From: "Maciej W. Rozycki" <macro@linux-mips.org>
To: binutils@sourceware.org
Subject: [PATCH] MIPS/GAS/test: Simplify MIPS16 enabling
Date: Sun, 03 Oct 2010 19:41:00 -0000 [thread overview]
Message-ID: <alpine.LFD.2.00.1010022225230.15889@eddie.linux-mips.org> (raw)
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
}
next reply other threads:[~2010-10-03 19:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-03 19:41 Maciej W. Rozycki [this message]
2010-10-04 20:38 ` Richard Sandiford
2010-10-24 10:55 ` Maciej W. Rozycki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1010022225230.15889@eddie.linux-mips.org \
--to=macro@linux-mips.org \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).