summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@arc.com>2009-09-10 15:24:41 +0000
committerJoern Rennecke <joern.rennecke@arc.com>2009-09-10 15:24:41 +0000
commit49ae28698e1adda66466515e60e5e028bc06cb68 (patch)
treef307bbf72fb706acca3312dce71ad3655a973334
parent71ee0b34ba0b8f5919125cbc877385952f54bab7 (diff)
downloadgdb-binutils-arc-20081103-branch.tar.gz
* arc-opc-cgen.c (arc_cgen_init_opcode_table): Comment outbinutils-arc-20081103-branch
warning-generating no-op.
-rw-r--r--opcodes/ChangeLog.ARC5
-rw-r--r--opcodes/arc-opc-cgen.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/opcodes/ChangeLog.ARC b/opcodes/ChangeLog.ARC
index b4c1f846131..b50e980f34e 100644
--- a/opcodes/ChangeLog.ARC
+++ b/opcodes/ChangeLog.ARC
@@ -1,3 +1,8 @@
+2009-09-10 J"orn Rennecke <joern.rennecke@arc.com>
+
+ * arc-opc-cgen.c (arc_cgen_init_opcode_table): Comment out
+ warning-generating no-op.
+
2008-04-09 J"orn Rennecke <joern.rennecke@arc.com>
Copy from configure:
diff --git a/opcodes/arc-opc-cgen.c b/opcodes/arc-opc-cgen.c
index b3880d33aa5..2210169e090 100644
--- a/opcodes/arc-opc-cgen.c
+++ b/opcodes/arc-opc-cgen.c
@@ -3199,6 +3199,10 @@ arc_cgen_init_opcode_table (CGEN_CPU_DESC cd)
const CGEN_OPCODE *oc = & arc_cgen_macro_insn_opcode_table[0];
CGEN_INSN *insns = xmalloc (num_macros * sizeof (CGEN_INSN));
+/* ??? This is a manual patch to avoid a compiler warning about a zero-sized
+ memset. cgen should be fixed not to emit or comment out this code when
+ <target>_cgen_macro_insn_table is empty. */
+#if 0
memset (insns, 0, num_macros * sizeof (CGEN_INSN));
for (i = 0; i < num_macros; ++i)
{
@@ -3206,6 +3210,7 @@ arc_cgen_init_opcode_table (CGEN_CPU_DESC cd)
insns[i].opcode = &oc[i];
arc_cgen_build_insn_regex (& insns[i]);
}
+#endif
cd->macro_insn_table.init_entries = insns;
cd->macro_insn_table.entry_size = sizeof (CGEN_IBASE);
cd->macro_insn_table.num_init_entries = num_macros;