From 2cbea2acb50e1bceb1f65ca77cdb9dec55df7f74 Mon Sep 17 00:00:00 2001 From: Jason Thorpe Date: Mon, 23 Jun 2003 00:41:47 +0000 Subject: [PATCH] * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after all locals have been declared. --- gas/ChangeLog | 5 +++++ gas/config/tc-ns32k.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index e5270cd31e..ec23c105e8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-06-22 Jason Thorpe + + * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after + all locals have been declared. + 2003-06-21 Thiemo Seufer * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c index 1e7afbcc06..eca23999a6 100644 --- a/gas/config/tc-ns32k.c +++ b/gas/config/tc-ns32k.c @@ -1640,9 +1640,10 @@ md_begin () /* Build a hashtable of the instructions. */ const struct ns32k_opcode *ptr; const char *stat; - inst_hash_handle = hash_new (); const struct ns32k_opcode *endop; + inst_hash_handle = hash_new (); + endop = ns32k_opcodes + sizeof (ns32k_opcodes) / sizeof (ns32k_opcodes[0]); for (ptr = ns32k_opcodes; ptr < endop; ptr++) { -- 2.11.0