Re: Fix minor NDS32 renaming snafu
authorAlan Modra <amodra@gmail.com>
Fri, 2 Jul 2021 07:57:31 +0000 (17:27 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 2 Jul 2021 11:18:55 +0000 (20:48 +0930)
commit62194b631d00112bac1f8856d3259d774df4c15e
treecd7385f4fdfbd31d5773180313cea95c3b340bdf
parentaf82b082c27eeefa261753e746fd002cc528cd1f
Re: Fix minor NDS32 renaming snafu

Some extern declarations differ in constnes to their definitions too.
Let's make sure this sort of thing doesn't happen again, but putting
the externs in a header where they belong.

gas/
* config/tc-nds32.c (nds32_keyword_gpr): Don't declare.
(md_begin): Constify k.
opcodes/
* nds32-dis.c (nds32_find_reg_keyword): Constify arg and return.
(nds32_parse_audio_ext, nds32_parse_opcode): Constify psys_reg.
(nds32_field_table, nds32_opcode_table, nds32_keyword_table),
(nds32_opcodes, nds32_operand_fields, nds32_keywords),
(nds32_keyword_gpr): Move declarations to..
* nds32-asm.h: ..here, constifying to match definitions.
gas/ChangeLog
gas/config/tc-nds32.c
opcodes/ChangeLog
opcodes/nds32-asm.h
opcodes/nds32-dis.c