This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] cc_table & others multiply defined


Hi Daniel,

  include/opcode/visium.h | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/opcode/visium.h b/include/opcode/visium.h
index c6048c9..f3704c3 100644
--- a/include/opcode/visium.h
+++ b/include/opcode/visium.h
@@ -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;


Thanks for pointing this out. I have checked in your patch along with this changelog entry.

Cheers
  Nick

include/opcode/ChangeLog
2015-09-09  Daniel Santos  <daniel.santos@pobox.com>

	* visium.h (gen_reg_table): Make static.
	(fp_reg_table): Likewise.
	(cc_table): Likewise.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]