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/global.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/global.c')
-rw-r--r-- | gcc/global.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/global.c b/gcc/global.c index 1ac0f24..4ec3150 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -486,10 +486,8 @@ global_alloc (file) /* We used to use alloca here, but the size of what it would try to allocate would occasionally cause it to exceed the stack limit and cause unpredictable core dumps. Some examples were > 2Mb in size. */ - conflicts = (INT_TYPE *) xmalloc (max_allocno * allocno_row_words - * sizeof (INT_TYPE)); - bzero ((char *) conflicts, - max_allocno * allocno_row_words * sizeof (INT_TYPE)); + conflicts = (INT_TYPE *) xcalloc (max_allocno * allocno_row_words, + sizeof (INT_TYPE)); allocnos_live = (INT_TYPE *) alloca (allocno_row_words * sizeof (INT_TYPE)); |