X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-h8300.c;h=cbde92ee8559ed656db41af626b21a5e8893f466;hb=629310abec8811510177101f3c7992dfd4be24dd;hp=7e69e857d4077e085353ba5e8ff7980f2831c898;hpb=494b2fc8078502f84a2ff2a3402a5989b221526d;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 7e69e857d4..cbde92ee85 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -224,7 +224,7 @@ const char EXP_CHARS[] = "eE"; or 0d1.2345e12. */ const char FLT_CHARS[] = "rRsSfFdDxXpP"; -static struct hash_control *opcode_hash_control; /* Opcode mnemonics. */ +static htab_t opcode_hash_control; /* Opcode mnemonics. */ /* This function is called once, at assembler startup time. This should set up all the tables, etc. that the MD part of the assembler @@ -242,7 +242,7 @@ md_begin (void) if (!bfd_set_arch_mach (stdoutput, bfd_arch_h8300, default_mach)) as_warn (_("could not set architecture and machine")); - opcode_hash_control = hash_new (); + opcode_hash_control = str_htab_create (); prev_buffer[0] = 0; nopcodes = sizeof (h8_opcodes) / sizeof (struct h8_opcode); @@ -283,7 +283,7 @@ md_begin (void) len = dst - buffer; if (cmplen == 0) cmplen = len; - hash_insert (opcode_hash_control, buffer, (char *) pi); + str_hash_insert (opcode_hash_control, buffer, (char *) pi); strcpy (prev_buffer, buffer); idx++; @@ -1940,7 +1940,7 @@ md_assemble (char *str) *slash = TOLOWER (*slash); instruction = (const struct h8_instruction *) - hash_find (opcode_hash_control, op_start); + str_hash_find (opcode_hash_control, op_start); if (instruction == NULL) {