2003-06-22  Jason Thorpe  <thorpej@wasabisystems.com>

	* config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
	all locals have been declared.

from the binutils mainline.

Problem (and also fix) reported by Eyal Lebedinsky on port-pc532.
This commit is contained in:
simonb 2004-03-01 00:01:16 +00:00
parent 028911b136
commit aa48fe87a3
1 changed files with 1 additions and 1 deletions

View File

@ -1640,9 +1640,9 @@ 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++)
{