]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* arc-opc-cgen.c (arc_cgen_init_opcode_table): Comment out binutils-arc-20081103-branch
authorJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 10 Sep 2009 15:24:41 +0000 (15:24 +0000)
committerJoern Rennecke <joern.rennecke@embecosm.com>
Thu, 10 Sep 2009 15:24:41 +0000 (15:24 +0000)
        warning-generating no-op.

opcodes/ChangeLog.ARC
opcodes/arc-opc-cgen.c

index b4c1f84613161ac00fb041b1493af269fb987bd3..b50e980f34eed3475d0e65976dd5803c9b11b972 100644 (file)
@@ -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:
index b3880d33aa5499d62d452b852f50463769f556eb..2210169e09079c47319e30810789a8f3b22e4341 100644 (file)
@@ -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;