aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
diff options
context:
space:
mode:
authorKlee Dienes <kdienes@apple.com>2002-11-18 16:50:05 +0000
committerKlee Dienes <kdienes@apple.com>2002-11-18 16:50:05 +0000
commit84037f8c661b04523b5858209b1dc69109f4f31e (patch)
tree27eb28738f9bf4d38786459f6da2ec8dd6e5fd2c /include/opcode
parent93509525ce7ec98e549760eae1848ebf2fff0c9b (diff)
downloadgdb-84037f8c661b04523b5858209b1dc69109f4f31e.zip
gdb-84037f8c661b04523b5858209b1dc69109f4f31e.tar.gz
gdb-84037f8c661b04523b5858209b1dc69109f4f31e.tar.bz2
2002-11-18 Klee Dienes <kdienes@apple.com>
* arc.h (arc_ext_opcodes): Declare as extern. (arc_ext_operands): Declare as extern. * i860.h (i860_opcodes): Declare as const. 2002-11-18 Klee Dienes <kdienes@apple.com> * arc-opc.c (arc_ext_opcodes): Define. (arc_ext_operands): Define. * i386-dis.c (Suffix3DNow): Declare as const. * arm-opc.h (arm_opcodes): Declare as const. (thumb_opcodes): Declare as const. * h8500-opc.h (h8500_table): Declare as const. (h8500_table): Use a NULL for the opcode in the terminator, so that code testing (opcode->name) behaves correctly. * mcore-opc.h (mcore_table): Declare as const. * sh-opc.h (sh_table): Declare as const. * w65-opc.h (optable): Declare as const. * z8k-opc.h (z8k_table): Declare as const.
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/ChangeLog6
-rw-r--r--include/opcode/arc.h6
-rw-r--r--include/opcode/i860.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index b83104d..06ded1d 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-18 Klee Dienes <kdienes@apple.com>
+
+ * arc.h (arc_ext_opcodes): Declare as extern.
+ (arc_ext_operands): Declare as extern.
+ * i860.h (i860_opcodes): Declare as const.
+
2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
* tic4x.h: File reordering. Added enhanced opcodes.
diff --git a/include/opcode/arc.h b/include/opcode/arc.h
index b137840..3da68ec 100644
--- a/include/opcode/arc.h
+++ b/include/opcode/arc.h
@@ -98,7 +98,7 @@ struct arc_opcode {
/* this is an "insert at front" linked list per Metaware spec
that new definitions override older ones. */
-struct arc_opcode *arc_ext_opcodes;
+extern struct arc_opcode *arc_ext_opcodes;
struct arc_operand_value {
char *name; /* eg: "eq" */
@@ -117,7 +117,9 @@ struct arc_operand_value {
struct arc_ext_operand_value {
struct arc_ext_operand_value *next;
struct arc_operand_value operand;
-} *arc_ext_operands;
+};
+
+extern struct arc_ext_operand_value *arc_ext_operands;
struct arc_operand {
/* One of the insn format chars. */
diff --git a/include/opcode/i860.h b/include/opcode/i860.h
index 9f10cd8..2d6ea19 100644
--- a/include/opcode/i860.h
+++ b/include/opcode/i860.h
@@ -96,7 +96,7 @@ Kinds of operands:
The order of opcodes does not affect the disassembler. */
-static struct i860_opcode i860_opcodes[] =
+static const struct i860_opcode i860_opcodes[] =
{
/* REG-Format Instructions. */
{ "ld.c", 0x30000000, 0xcc000000, "c,d", 0 }, /* ld.c csrc2,idest */