diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-riscv.c | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 0999152..f3b8d33 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2019-11-22 Andrew Burgess <andrew.burgess@embecosm.com> + + * config/tc-riscv.c (struct regname): Delete. + (hash_reg_names): Handle value as 'void *'. + 2019-11-25 Andrew Pinski <apinski@marvell.com> * config/tc-aarch64.c (md_begin): Use correct diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index e505051..5d95ee8 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -446,12 +446,6 @@ opcode_name_lookup (char **s) return o; } -struct regname -{ - const char *name; - unsigned int num; -}; - enum reg_class { RCLASS_GPR, @@ -489,7 +483,7 @@ hash_reg_names (enum reg_class class, const char * const names[], unsigned n) static unsigned int reg_lookup_internal (const char *s, enum reg_class class) { - struct regname *r = (struct regname *) hash_find (reg_names_hash, s); + void *r = hash_find (reg_names_hash, s); if (r == NULL || DECODE_REG_CLASS (r) != class) return -1; |