diff options
author | Richard Henderson <rth@cygnus.com> | 1999-09-03 16:22:50 -0700 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-03 23:22:50 +0000 |
commit | 3de900268edfcbeb0b286cc0119b778e1050a028 (patch) | |
tree | 3eb337eba34d2d4c91a5e74dbcce64f57595bd4b /gcc/haifa-sched.c | |
parent | 818a3b1591f335fe4d781637297246d7e9cda583 (diff) | |
download | gcc-3de900268edfcbeb0b286cc0119b778e1050a028.zip gcc-3de900268edfcbeb0b286cc0119b778e1050a028.tar.gz gcc-3de900268edfcbeb0b286cc0119b778e1050a028.tar.bz2 |
dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
* 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.
From-SVN: r29091
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 43dc953..87df858 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++) |