projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
binutils/
[deliverable/binutils-gdb.git]
/
opcodes
/
m32r-opc.c
diff --git
a/opcodes/m32r-opc.c
b/opcodes/m32r-opc.c
index 807cba011ca2b5bc3aab07a15bf477d1c248149c..79a8e188b8d970c38572ced11beb1c48abd2b14e 100644
(file)
--- a/
opcodes/m32r-opc.c
+++ b/
opcodes/m32r-opc.c
@@
-2,7
+2,7
@@
THIS FILE IS MACHINE GENERATED WITH CGEN.
THIS FILE IS MACHINE GENERATED WITH CGEN.
-Copyright 1996-200
7
Free Software Foundation, Inc.
+Copyright 1996-200
9
Free Software Foundation, Inc.
This file is part of the GNU Binutils and/or GDB, the GNU debugger.
This file is part of the GNU Binutils and/or GDB, the GNU debugger.
@@
-1797,7
+1797,10
@@
m32r_cgen_init_opcode_table (CGEN_CPU_DESC cd)
const CGEN_OPCODE *oc = & m32r_cgen_macro_insn_opcode_table[0];
CGEN_INSN *insns = xmalloc (num_macros * sizeof (CGEN_INSN));
const CGEN_OPCODE *oc = & m32r_cgen_macro_insn_opcode_table[0];
CGEN_INSN *insns = xmalloc (num_macros * sizeof (CGEN_INSN));
- memset (insns, 0, num_macros * sizeof (CGEN_INSN));
+ /* This test has been added to avoid a warning generated
+ if memset is called with a third argument of value zero. */
+ if (num_macros >= 1)
+ memset (insns, 0, num_macros * sizeof (CGEN_INSN));
for (i = 0; i < num_macros; ++i)
{
insns[i].base = &ib[i];
for (i = 0; i < num_macros; ++i)
{
insns[i].base = &ib[i];
This page took
0.023597 seconds
and
4
git commands to generate.