diff options
author | Stan Shebs <shebs@apple.com> | 2001-06-22 02:38:22 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2001-06-22 02:38:22 +0000 |
commit | 3393c3a6e3cbbef3287c7bcd120d5a68550bcc71 (patch) | |
tree | 10674b909e9314e9f65353eb1838f2245e51dd61 | |
parent | daa19534a9092adc46b177ba8d0eccbd8be59c7a (diff) | |
download | gcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.zip gcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.tar.gz gcc-3393c3a6e3cbbef3287c7bcd120d5a68550bcc71.tar.bz2 |
* objc/objc-act.c (hash_init): Use xcalloc.
From-SVN: r43498
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <shebs@apple.com> + + * objc/objc-act.c (hash_init): Use xcalloc. + 2001-06-21 Richard Henderson <rth@redhat.com> * 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 |