From: Stan Shebs Date: Fri, 22 Jun 2001 02:38:22 +0000 (+0000) Subject: * objc/objc-act.c (hash_init): Use xcalloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3393c3a6e3cbbef3287c7bcd120d5a68550bcc71;p=gcc.git * objc/objc-act.c (hash_init): Use xcalloc. From-SVN: r43498 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45495d61752..57da6117b74 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 076637e588f..af9a8bb858d 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