diff options
author | Alan Modra <amodra@gmail.com> | 2008-08-12 23:39:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-08-12 23:39:31 +0000 |
commit | 5a49b8acf456d4a049c002fae31b83a10b35e6f8 (patch) | |
tree | c55c2f40551c32d774a8dfd9c61b5ba503dc954a /gas/config/tc-arm.c | |
parent | 11fa8e431388f2e50d86cd4af26b748eba56b10e (diff) | |
download | gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.zip gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.gz gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.bz2 |
Banish PARAMS and PTR. Convert to ISO C.
Delete unnecessary forward declarations.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 85e1e2d..0d3fe7b 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -1988,7 +1988,7 @@ insert_reg_alias (char *str, int number, int type) new->builtin = FALSE; new->neon = NULL; - if (hash_insert (arm_reg_hsh, name, (PTR) new)) + if (hash_insert (arm_reg_hsh, name, (void *) new)) abort (); return new; @@ -19602,25 +19602,25 @@ md_begin (void) as_fatal (_("virtual memory exhausted")); for (i = 0; i < sizeof (insns) / sizeof (struct asm_opcode); i++) - hash_insert (arm_ops_hsh, insns[i].template, (PTR) (insns + i)); + hash_insert (arm_ops_hsh, insns[i].template, (void *) (insns + i)); for (i = 0; i < sizeof (conds) / sizeof (struct asm_cond); i++) - hash_insert (arm_cond_hsh, conds[i].template, (PTR) (conds + i)); + hash_insert (arm_cond_hsh, conds[i].template, (void *) (conds + i)); for (i = 0; i < sizeof (shift_names) / sizeof (struct asm_shift_name); i++) - hash_insert (arm_shift_hsh, shift_names[i].name, (PTR) (shift_names + i)); + hash_insert (arm_shift_hsh, shift_names[i].name, (void *) (shift_names + i)); for (i = 0; i < sizeof (psrs) / sizeof (struct asm_psr); i++) - hash_insert (arm_psr_hsh, psrs[i].template, (PTR) (psrs + i)); + hash_insert (arm_psr_hsh, psrs[i].template, (void *) (psrs + i)); for (i = 0; i < sizeof (v7m_psrs) / sizeof (struct asm_psr); i++) - hash_insert (arm_v7m_psr_hsh, v7m_psrs[i].template, (PTR) (v7m_psrs + i)); + hash_insert (arm_v7m_psr_hsh, v7m_psrs[i].template, (void *) (v7m_psrs + i)); for (i = 0; i < sizeof (reg_names) / sizeof (struct reg_entry); i++) - hash_insert (arm_reg_hsh, reg_names[i].name, (PTR) (reg_names + i)); + hash_insert (arm_reg_hsh, reg_names[i].name, (void *) (reg_names + i)); for (i = 0; i < sizeof (barrier_opt_names) / sizeof (struct asm_barrier_opt); i++) hash_insert (arm_barrier_opt_hsh, barrier_opt_names[i].template, - (PTR) (barrier_opt_names + i)); + (void *) (barrier_opt_names + i)); #ifdef OBJ_ELF for (i = 0; i < sizeof (reloc_names) / sizeof (struct reloc_entry); i++) - hash_insert (arm_reloc_hsh, reloc_names[i].name, (PTR) (reloc_names + i)); + hash_insert (arm_reloc_hsh, reloc_names[i].name, (void *) (reloc_names + i)); #endif set_constant_flonums (); |