This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[applies mips testsuite patch] init mips arch array.
- From: cgd at broadcom dot com
- To: binutils at sources dot redhat dot com
- Date: 01 May 2003 22:32:20 -0700
- Subject: [applies mips testsuite patch] init mips arch array.
Applied as obvious. Ran a test on compilers which included multilibs
("multiple variations" if you will 8-), and happened to also check
gas... and noticed that the test ERRORed out! Made me feel lame!
I've also applied it to the branch.
2003-05-01 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips.exp (mips_arch_init): New function.
Call it before setting up architecture array entries.
Index: gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.67
diff -u -p -r1.67 mips.exp
--- gas/mips/mips.exp 11 Apr 2003 01:56:51 -0000 1.67
+++ gas/mips/mips.exp 2 May 2003 05:11:25 -0000
@@ -78,6 +78,15 @@
# based on the target of the assembler being built. If always has
# empty "as_flags" and "objdump_flags."
+# mips_arch_init
+#
+# This function initializes the architecture data array ("mips_arches")
+# to be empty.
+proc mips_arch_init {} {
+ global mips_arches
+ array unset mips_arches
+}
+
# mips_arch_create ARCH GPRSIZE EXTENDS PROPS AS_FLAGS OBJDUMP_FLAGS \
# (optional:) DEFAULT_FOR_TARGETS
#
@@ -334,6 +343,7 @@ proc run_list_test_arches { name opts ar
# Note that several targets pick default CPU based on ABI. We
# can't easily handle that; do NOT list those targets as defaulting
# to any architecture.
+mips_arch_init
mips_arch_create mips1 32 {} {} \
{ -march=mips1 -mtune=mips1 } { -mmips:3000 }
mips_arch_create mips2 32 mips1 { gpr_ilocks } \