summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2009-09-10 15:24:41 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2009-09-10 15:24:41 +0000
commit79bec4016666d77fb38ff61dec128cf1e9a383a1 (patch)
treecd33c81dd1086a9c7ce51b04a306ec6132b96f27
parent7451b3837ccc370361dc0e665aa3de29c4a690f2 (diff)
downloadbinutils-gdb-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;