X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-z8k.c;h=188604316285d18c9d296054b7be69a0373810ff;hb=629310abec8811510177101f3c7992dfd4be24dd;hp=ea4ee3a6b1f3be1d4944621b67eaa74008434199;hpb=494b2fc8078502f84a2ff2a3402a5989b221526d;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index ea4ee3a6b1..1886043162 100644 --- a/gas/config/tc-z8k.c +++ b/gas/config/tc-z8k.c @@ -137,7 +137,7 @@ const char EXP_CHARS[] = "eE"; const char FLT_CHARS[] = "rRsSfFdDxXpP"; /* Opcode mnemonics. */ -static struct hash_control *opcode_hash_control; +static htab_t opcode_hash_control; void md_begin (void) @@ -145,13 +145,13 @@ md_begin (void) const opcode_entry_type *opcode; unsigned int idx = -1u; - opcode_hash_control = hash_new (); + opcode_hash_control = str_htab_create (); for (opcode = z8k_table; opcode->name; opcode++) { /* Only enter unique codes into the table. */ if (idx != opcode->idx) - hash_insert (opcode_hash_control, opcode->name, (char *) opcode); + str_hash_insert (opcode_hash_control, opcode->name, (char *) opcode); idx = opcode->idx; } @@ -166,7 +166,7 @@ md_begin (void) fake_opcode->name = md_pseudo_table[idx].poc_name; fake_opcode->func = (void *) (md_pseudo_table + idx); fake_opcode->opcode = 250; - hash_insert (opcode_hash_control, fake_opcode->name, fake_opcode); + str_hash_insert (opcode_hash_control, fake_opcode->name, fake_opcode); } } @@ -1224,9 +1224,9 @@ md_assemble (char *str) } c = *op_end; - *op_end = 0; /* Zero-terminate op code string for hash_find() call. */ + *op_end = 0; /* Zero-terminate op code string for str_hash_find() call. */ - opcode = (opcode_entry_type *) hash_find (opcode_hash_control, op_start); + opcode = (opcode_entry_type *) str_hash_find (opcode_hash_control, op_start); if (opcode == NULL) {