aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-18 23:48:48 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-23 01:17:12 -0400
commit3d207518c117df7a6c58f20bc2693171b7690650 (patch)
treea5ae08a83603df4524c2ed6cfe05383027e423a8 /include/opcode
parent82418e18f81ea76deb633b7531f197b13e77bc8f (diff)
downloadgdb-3d207518c117df7a6c58f20bc2693171b7690650.zip
gdb-3d207518c117df7a6c58f20bc2693171b7690650.tar.gz
gdb-3d207518c117df7a6c58f20bc2693171b7690650.tar.bz2
tic54x: rename typedef of struct symbol_
generic gas code has a struct symbol, and tic54x typedefs a struct to symbol. This seems at least rather confusing, and it seems like target specific headers shouldn't put such generic names in the global namespace preventing other generic code from using them. opcodes/ChangeLog: 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * tic54x-dis.c (sprint_mmr): Adjust. * tic54x-opc.c: Likewise. gas/ChangeLog: 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/tc-tic54x.c (tic54x_mmregs): Adjust. (md_begin): Likewise. (encode_condition): Likewise. (encode_cc3): Likewise. (encode_cc2): Likewise. (encode_operand): Likewise. (tic54x_undefined_symbol): Likewise. include/ChangeLog: 2016-05-23 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * opcode/tic54x.h (struct symbol_): typedef to tic54x_symbol instead of plain symbol.
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/tic54x.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/opcode/tic54x.h b/include/opcode/tic54x.h
index 49120de..b0af407 100644
--- a/include/opcode/tic54x.h
+++ b/include/opcode/tic54x.h
@@ -26,7 +26,7 @@ typedef struct _symbol
{
const char *name;
unsigned short value;
-} symbol;
+} tic54x_symbol;
enum optype {
OPT = 0x8000,
@@ -152,9 +152,9 @@ typedef struct _template
extern const insn_template tic54x_unknown_opcode;
extern const insn_template tic54x_optab[];
extern const insn_template tic54x_paroptab[];
-extern const symbol mmregs[], regs[];
-extern const symbol condition_codes[], cc2_codes[], status_bits[];
-extern const symbol cc3_codes[];
+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[];
struct disassemble_info;
extern const insn_template* tic54x_get_insn (struct disassemble_info *,