flow.c (create_edge_list): Use xmalloc, not malloc.
authorAndrew MacLeod <amacleod@cygnus.com>
Tue, 17 Aug 1999 21:44:26 +0000 (21:44 +0000)
committerAndrew Macleod <amacleod@gcc.gnu.org>
Tue, 17 Aug 1999 21:44:26 +0000 (21:44 +0000)
Tue Aug 17 17:39:43 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>

* flow.c (create_edge_list): Use xmalloc, not malloc.

From-SVN: r28736

gcc/ChangeLog
gcc/flow.c

index c2b03a2..94305d1 100644 (file)
@@ -1,3 +1,7 @@
+Tue Aug 17 17:39:43 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>
+
+       * flow.c (create_edge_list): Use xmalloc, not malloc.
+
 Tue Aug 17 01:40:54 1999  Loren Rittle  <ljrittle@acm.org>
 
        * fixinc/inclhack.def (no_double_slash): Do not trash single-line
index e63481d..1154188 100644 (file)
@@ -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;