From: Jeff Law Date: Mon, 13 Dec 1999 07:55:53 +0000 (-0700) Subject: * flow.c (create_edge_list): Cast xmalloc return value. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c852885c4e2b66bc0ba6a87e6a60e752a14faaa;p=gcc.git * flow.c (create_edge_list): Cast xmalloc return value. From-SVN: r30886 --- 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;