From: Andrew MacLeod Date: Tue, 17 Aug 1999 21:44:26 +0000 (+0000) Subject: flow.c (create_edge_list): Use xmalloc, not malloc. X-Git-Tag: prereleases/libstdc++-2.92~11155 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=57ad447995d05a654679632a379d8abd7a3ebfb6;p=gcc.git 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 --- 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;