X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-pdp11.c;h=1818d2fe401aa859bfddb5a7e5c236868ec778c6;hb=629310abec8811510177101f3c7992dfd4be24dd;hp=7de42aea959f0e472f2eddeaf8b58cac27d0e6f2;hpb=494b2fc8078502f84a2ff2a3402a5989b221526d;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c index 7de42aea95..1818d2fe40 100644 --- a/gas/config/tc-pdp11.c +++ b/gas/config/tc-pdp11.c @@ -82,7 +82,7 @@ const pseudo_typeS md_pseudo_table[] = { 0, 0, 0 }, }; -static struct hash_control *insn_hash = NULL; +static htab_t insn_hash = NULL; static int set_option (const char *arg) @@ -188,14 +188,14 @@ md_begin (void) init_defaults (); - insn_hash = hash_new (); + insn_hash = str_htab_create (); if (insn_hash == NULL) as_fatal (_("Virtual memory exhausted")); for (i = 0; i < pdp11_num_opcodes; i++) - hash_insert (insn_hash, pdp11_opcodes[i].name, (void *) (pdp11_opcodes + i)); + str_hash_insert (insn_hash, pdp11_opcodes[i].name, (void *) (pdp11_opcodes + i)); for (i = 0; i < pdp11_num_aliases; i++) - hash_insert (insn_hash, pdp11_aliases[i].name, (void *) (pdp11_aliases + i)); + str_hash_insert (insn_hash, pdp11_aliases[i].name, (void *) (pdp11_aliases + i)); } void @@ -713,7 +713,7 @@ md_assemble (char *instruction_string) c = *p; *p = '\0'; - op = (struct pdp11_opcode *)hash_find (insn_hash, str); + op = (struct pdp11_opcode *)str_hash_find (insn_hash, str); *p = c; if (op == 0) {