diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-03 23:22:50 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-03 23:22:50 +0000 |
commit | a559f7c8f6eb6245c0efcd32a5027e912b03eac5 (patch) | |
tree | 3eb337eba34d2d4c91a5e74dbcce64f57595bd4b /gcc/haifa-sched.c | |
parent | 9ece79715feb4928f7f747c4581d8dcfc782bd85 (diff) | |
download | gcc-a559f7c8f6eb6245c0efcd32a5027e912b03eac5.tar.gz |
* dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
* dwarf2out.c (dwarf2out_frame_init): Likewise.
* final.c (shorten_branches): Likewise.
* global.c (global_alloc): Likewise.
* haifa-sched.c (build_control_flow): Likewise.
* stmt.c (check_for_full_enumeration_handling): Likewise.
(estimate_case_costs): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29091 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 43dc9533be0..87df8581ad8 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -1085,13 +1085,9 @@ build_control_flow (s_preds, s_succs, num_preds, num_succs) /* Account for entry/exit edges. */ nr_edges += 2; - in_edges = (int *) xmalloc (n_basic_blocks * sizeof (int)); - out_edges = (int *) xmalloc (n_basic_blocks * sizeof (int)); - bzero ((char *) in_edges, n_basic_blocks * sizeof (int)); - bzero ((char *) out_edges, n_basic_blocks * sizeof (int)); - - edge_table = (haifa_edge *) xmalloc ((nr_edges) * sizeof (haifa_edge)); - bzero ((char *) edge_table, ((nr_edges) * sizeof (haifa_edge))); + in_edges = (int *) xcalloc (n_basic_blocks, sizeof (int)); + out_edges = (int *) xcalloc (n_basic_blocks, sizeof (int)); + edge_table = (haifa_edge *) xcalloc (nr_edges, sizeof (haifa_edge)); nr_edges = 0; for (i = 0; i < n_basic_blocks; i++) |