diff options
-rw-r--r-- | opcodes/ChangeLog.ARC | 5 | ||||
-rw-r--r-- | opcodes/arc-opc-cgen.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/opcodes/ChangeLog.ARC b/opcodes/ChangeLog.ARC index b4c1f84..b50e980 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 b3880d3..2210169 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; |