summaryrefslogtreecommitdiff
path: root/gcc/genautomata.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-24 15:19:40 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-24 15:19:40 +0000
commit7f882fe9d2c2c94d333fd7b448bfdca01bcb0e29 (patch)
tree310851c47ee12a55d837dbf6fd1ad78bfc539dcb /gcc/genautomata.c
parentea4b1692d1a67d549f0584f9b46a8932330bc52a (diff)
downloadgcc-7f882fe9d2c2c94d333fd7b448bfdca01bcb0e29.tar.gz
* genautomata.c (process_state_for_insn_equiv_partition):
Use xcalloc for insn_arcs_array. * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates. (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110172 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r--gcc/genautomata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 14165d6c3db..e546f479ac0 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -6162,7 +6162,7 @@ static void
process_state_for_insn_equiv_partition (state_t state)
{
arc_t arc;
- arc_t *insn_arcs_array = xmalloc (description->insns_num * sizeof(arc_t));
+ arc_t *insn_arcs_array = xcalloc (description->insns_num, sizeof(arc_t));
/* Process insns of the arcs. */
for (arc = first_out_arc (state); arc != NULL; arc = next_out_arc (arc))