aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2003-05-02 05:29:13 +0000
committerChris Demetriou <cgd@google.com>2003-05-02 05:29:13 +0000
commit4d8728e16bbf71f8e4b6f94f30e2512bda21fce9 (patch)
treeade731b46be00fae76ff7beccb153cae684ff5a7 /gas
parente7b9a8c1d08ede4b41cd3c92fc3d06e81846ac95 (diff)
downloadgdb-4d8728e16bbf71f8e4b6f94f30e2512bda21fce9.zip
gdb-4d8728e16bbf71f8e4b6f94f30e2512bda21fce9.tar.gz
gdb-4d8728e16bbf71f8e4b6f94f30e2512bda21fce9.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mips/mips.exp10
2 files changed, 15 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 7abb132..93c22dd 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2003-05-01 H.J. Lu <hjl@gnu.org>
* gas/elf/elf.exp (run_list_test): Accept empty $opts.
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 6557343..2208b1c 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -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 arch_list } {
# 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 } \