diff options
author | Jason Thorpe <thorpej@netbsd.org> | 2003-06-23 00:41:47 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@netbsd.org> | 2003-06-23 00:41:47 +0000 |
commit | b7599f01d21713f0789bcd4f3bded99a437e9e64 (patch) | |
tree | 8ce9334d524b10da024158ff35c106cd0445b8e9 /gas/config/tc-ns32k.c | |
parent | b07c2aad882138b042f60b24ac12f579039ec4d6 (diff) | |
download | gdb-b7599f01d21713f0789bcd4f3bded99a437e9e64.zip gdb-b7599f01d21713f0789bcd4f3bded99a437e9e64.tar.gz gdb-b7599f01d21713f0789bcd4f3bded99a437e9e64.tar.bz2 |
* config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
all locals have been declared.
Diffstat (limited to 'gas/config/tc-ns32k.c')
-rw-r--r-- | gas/config/tc-ns32k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c index 1e7afbc..eca2399 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++) { |