From 57ad447995d05a654679632a379d8abd7a3ebfb6 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 17 Aug 1999 21:44:26 +0000 Subject: [PATCH] flow.c (create_edge_list): Use xmalloc, not malloc. Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod * flow.c (create_edge_list): Use xmalloc, not malloc. From-SVN: r28736 --- gcc/ChangeLog | 4 ++++ gcc/flow.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2b03a255c49..94305d13b3d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 17 17:39:43 EDT 1999 Andrew MacLeod + + * flow.c (create_edge_list): Use xmalloc, not malloc. + Tue Aug 17 01:40:54 1999 Loren Rittle * fixinc/inclhack.def (no_double_slash): Do not trash single-line diff --git a/gcc/flow.c b/gcc/flow.c index e63481dc58bb..1154188684d0 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -5283,10 +5283,10 @@ create_edge_list () for (e = ENTRY_BLOCK_PTR->succ; e; e = e->succ_next) num_edges++; - elist = malloc (sizeof (struct edge_list)); + elist = xmalloc (sizeof (struct edge_list)); elist->num_blocks = block_count; elist->num_edges = num_edges; - elist->index_to_edge = malloc (sizeof (edge) * num_edges); + elist->index_to_edge = xmalloc (sizeof (edge) * num_edges); num_edges = 0; -- 2.43.5