From 3393c3a6e3cbbef3287c7bcd120d5a68550bcc71 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Fri, 22 Jun 2001 02:38:22 +0000 Subject: [PATCH] * objc/objc-act.c (hash_init): Use xcalloc. From-SVN: r43498 --- gcc/ChangeLog | 4 ++++ gcc/objc/objc-act.c | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45495d6..57da611 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-06-21 Stan Shebs + + * objc/objc-act.c (hash_init): Use xcalloc. + 2001-06-21 Richard Henderson * flow.c (entry_exit_blocks): Initialize frequency. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 076637e..af9a8bb 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -5447,11 +5447,8 @@ build_ivar_reference (id) static void hash_init () { - nst_method_hash_list = (hash *) xmalloc (SIZEHASHTABLE * sizeof (hash)); - cls_method_hash_list = (hash *) xmalloc (SIZEHASHTABLE * sizeof (hash)); - - memset (nst_method_hash_list, 0, SIZEHASHTABLE * sizeof (hash)); - memset (cls_method_hash_list, 0, SIZEHASHTABLE * sizeof (hash)); + nst_method_hash_list = (hash *) xcalloc (SIZEHASHTABLE, sizeof (hash)); + cls_method_hash_list = (hash *) xcalloc (SIZEHASHTABLE, sizeof (hash)); } /* WARNING!!!! hash_enter is called with a method, and will peek -- 2.7.4