From 2c852885c4e2b66bc0ba6a87e6a60e752a14faaa Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 13 Dec 1999 00:55:53 -0700 Subject: [PATCH] * flow.c (create_edge_list): Cast xmalloc return value. From-SVN: r30886 --- gcc/ChangeLog | 8 ++++++++ gcc/flow.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e880344571d..72398f2abc7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Mon Dec 13 00:54:14 1999 Philippe De Muyter + + * flow.c (create_edge_list): Cast xmalloc return value. + +Mon Dec 13 00:47:58 1999 Jeffrey A Law (law@cygnus.com) + + * cse.c: Fix a few minor whitespace goofs. + 1999-12-13 Don Bowman * mips/vxworks.h: Fix problem with comment termination. diff --git a/gcc/flow.c b/gcc/flow.c index cc20485317c..a16d0ed5b28 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -6009,10 +6009,10 @@ create_edge_list () for (e = ENTRY_BLOCK_PTR->succ; e; e = e->succ_next) num_edges++; - elist = xmalloc (sizeof (struct edge_list)); + elist = (struct edge_list *) xmalloc (sizeof (struct edge_list)); elist->num_blocks = block_count; elist->num_edges = num_edges; - elist->index_to_edge = xmalloc (sizeof (edge) * num_edges); + elist->index_to_edge = (edge *) xmalloc (sizeof (edge) * num_edges); num_edges = 0; -- 2.30.2