aboutsummaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c6
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));