Make register name tables in visium.h static in order to prevent multiple definitions.
authorNick Clifton <nickc@redhat.com>
Wed, 9 Sep 2015 13:50:08 +0000 (14:50 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 9 Sep 2015 13:50:08 +0000 (14:50 +0100)
* visium.h (gen_reg_table): Make static.
(fp_reg_table): Likewise.
(cc_table): Likewise.

include/opcode/ChangeLog
include/opcode/visium.h

index 7e44d682487f020a046999df3c0d64de1cc3dfc3..6fce0ac859737215187bcd5b58b35ac62fad2396 100644 (file)
@@ -1,3 +1,9 @@
+2015-09-09  Daniel Santos  <daniel.santos@pobox.com>
+
+       * visium.h (gen_reg_table): Make static.
+       (fp_reg_table): Likewise.
+       (cc_table): Likewise.
+
 2015-07-20  Matthew Wahab  <matthew.wahab@arm.com>
 
        * arm.h (ARM_AEXT_V6ZK): Rename to ARM_AEXT_V6KZ.
index c6048c9b1bce16f1e875d1cea4855ae83215c90a..f3704c30303b92264923cd3e4416c2fb2a7000be 100644 (file)
@@ -104,7 +104,7 @@ struct reg_entry
   unsigned char code;
 };
 
-const struct reg_entry gen_reg_table[] =
+static const struct reg_entry gen_reg_table[] =
 {
   {"fp", 0x16},
   {"r0", 0x0},
@@ -142,7 +142,7 @@ const struct reg_entry gen_reg_table[] =
   {"sp", 0x17},
 };
 
-const struct reg_entry fp_reg_table[] =
+static const struct reg_entry fp_reg_table[] =
 {
   {"f0", 0x0},
   {"f1", 0x1},
@@ -162,7 +162,7 @@ const struct reg_entry fp_reg_table[] =
   {"f9", 0x9},
 };
 
-const struct cc_entry
+static const struct cc_entry
 {
   char *name;
   int code;
This page took 0.02804 seconds and 4 git commands to generate.