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/global.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/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 1ac0f24c3f2..4ec3150348e 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)); |