PR22348, conflicting global vars in crx and cr16
authorAlan Modra <amodra@gmail.com>
Wed, 25 Oct 2017 11:29:14 +0000 (21:59 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Oct 2017 11:44:58 +0000 (22:14 +1030)
commite5d70d6b5a5c2832ad199ac1b91f68324b4a12c9
tree1d81154693c5ac8086c05b89a519a6ae5807e490
parentcc628f3dbb12c720dbc9ab714feeb197dc739944
PR22348, conflicting global vars in crx and cr16

include/
PR 22348
* opcode/cr16.h (instruction): Delete.
(cr16_words, cr16_allWords, cr16_currInsn): Delete.
* opcode/crx.h (crx_cst4_map): Rename from cst4_map.
(crx_cst4_maps): Rename from cst4_maps.
(crx_no_op_insn): Rename from no_op_insn.
(instruction): Delete.
opcodes/
PR 22348
* cr16-dis.c (cr16_cinvs, instruction, cr16_currInsn): Make static.
(cr16_words, cr16_allWords, processing_argument_number): Likewise.
(imm4flag, size_changed): Likewise.
* crx-dis.c (crx_cinvs, NUMCINVS, instruction, currInsn): Likewise.
(words, allWords, processing_argument_number): Likewise.
(cst4flag, size_changed): Likewise.
* crx-opc.c (crx_cst4_map): Rename from cst4_map.
(crx_cst4_maps): Rename from cst4_maps.
(crx_no_op_insn): Rename from no_op_insn.
gas/
PR 22348
* config/tc-crx.c (instruction, output_opcode): Make static.
(relocatable, ins_parse, cur_arg_num): Likewise.
(parse_insn): Adjust for renamed opcodes globals.
(check_range): Likewise
gas/ChangeLog
gas/config/tc-crx.c
include/ChangeLog
include/opcode/cr16.h
include/opcode/crx.h
opcodes/ChangeLog
opcodes/cr16-dis.c
opcodes/crx-dis.c
opcodes/crx-opc.c