From bfd428bc12af433831a4c7e9a0e692f21a9adf5e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 16 Jan 2021 01:00:45 -0500 Subject: opcodes: tic54x: namespace exported variables The tic54x exports some fairly generic variable names that can conflict with programs that use them, so put proper tic54x_ prefixes on all of them. --- include/ChangeLog | 17 +++++++++++++++++ include/opcode/tic54x.h | 8 ++++---- 2 files changed, 21 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 09a3ad9..18237b5 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,20 @@ +2021-02-08 Mike Frysinger + + * opcode/tic54x.h (mmregs): Rename to ... + (tic54x_mmregs): ... this. + (regs): Rename to ... + (tic54x_regs): ... this. + (condition_codes): Rename to ... + (tic54x_condition_codes): ... this. + (cc2_codes): Rename to ... + (tic54x_cc2_codes): ... this. + (status_bits): Rename to ... + (tic54x_status_bits): ... this. + (cc3_codes): Rename to ... + (tic54x_cc3_codes): ... this. + (misc_symbols): Rename to ... + (tic54x_misc_symbols): ... this. + 2021-02-05 Nelson Chu PR 27348 diff --git a/include/opcode/tic54x.h b/include/opcode/tic54x.h index 8e0dd7e..4567ca8 100644 --- a/include/opcode/tic54x.h +++ b/include/opcode/tic54x.h @@ -152,10 +152,10 @@ typedef struct _template extern const insn_template tic54x_unknown_opcode; extern const insn_template tic54x_optab[]; extern const insn_template tic54x_paroptab[]; -extern const tic54x_symbol mmregs[], regs[]; -extern const tic54x_symbol condition_codes[], cc2_codes[], status_bits[]; -extern const tic54x_symbol cc3_codes[]; -extern const char *misc_symbols[]; +extern const tic54x_symbol tic54x_mmregs[], tic54x_regs[]; +extern const tic54x_symbol tic54x_condition_codes[], tic54x_cc2_codes[]; +extern const tic54x_symbol tic54x_status_bits[], tic54x_cc3_codes[]; +extern const char *tic54x_misc_symbols[]; struct disassemble_info; extern const insn_template* tic54x_get_insn (struct disassemble_info *, bfd_vma, unsigned short, int *); -- cgit v1.1