GNU Binutils with patches for OS216
Revisión | 79bec4016666d77fb38ff61dec128cf1e9a383a1 (tree) |
---|---|
Tiempo | 2009-09-11 00:24:41 |
Autor | Joern Rennecke <joern.rennecke@embe...> |
Commiter | Joern Rennecke |
@@ -1,3 +1,8 @@ | ||
1 | +2009-09-10 J"orn Rennecke <joern.rennecke@arc.com> | |
2 | + | |
3 | + * arc-opc-cgen.c (arc_cgen_init_opcode_table): Comment out | |
4 | + warning-generating no-op. | |
5 | + | |
1 | 6 | 2008-04-09 J"orn Rennecke <joern.rennecke@arc.com> |
2 | 7 | |
3 | 8 | Copy from configure: |
@@ -3199,6 +3199,10 @@ arc_cgen_init_opcode_table (CGEN_CPU_DESC cd) | ||
3199 | 3199 | const CGEN_OPCODE *oc = & arc_cgen_macro_insn_opcode_table[0]; |
3200 | 3200 | CGEN_INSN *insns = xmalloc (num_macros * sizeof (CGEN_INSN)); |
3201 | 3201 | |
3202 | +/* ??? This is a manual patch to avoid a compiler warning about a zero-sized | |
3203 | + memset. cgen should be fixed not to emit or comment out this code when | |
3204 | + <target>_cgen_macro_insn_table is empty. */ | |
3205 | +#if 0 | |
3202 | 3206 | memset (insns, 0, num_macros * sizeof (CGEN_INSN)); |
3203 | 3207 | for (i = 0; i < num_macros; ++i) |
3204 | 3208 | { |
@@ -3206,6 +3210,7 @@ arc_cgen_init_opcode_table (CGEN_CPU_DESC cd) | ||
3206 | 3210 | insns[i].opcode = &oc[i]; |
3207 | 3211 | arc_cgen_build_insn_regex (& insns[i]); |
3208 | 3212 | } |
3213 | +#endif | |
3209 | 3214 | cd->macro_insn_table.init_entries = insns; |
3210 | 3215 | cd->macro_insn_table.entry_size = sizeof (CGEN_IBASE); |
3211 | 3216 | cd->macro_insn_table.num_init_entries = num_macros; |