From b5232c64e76c385e4ddcbfbcce99a0e73b534ea7 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Fri, 25 Aug 2000 19:07:56 +0000 Subject: [PATCH] * tree.c (init_tree): Use ARRAY_SIZE. From-SVN: r35989 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/tree.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7a7514ccf33..0f0a15082aa 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-08-25 Greg McGary + + * tree.c (init_tree): Use ARRAY_SIZE. + 2000-08-25 Gabriel Dos Reis * error.c (cp_tree_printer): Rework. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 01d2fd94b76..cd7d45f0d29 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2376,7 +2376,7 @@ init_tree () make_lang_type_fn = cp_make_lang_type; lang_unsave = cp_unsave; ggc_add_root (list_hash_table, - sizeof (list_hash_table) / sizeof (struct list_hash *), + ARRAY_SIZE (list_hash_table), sizeof (struct list_hash *), mark_list_hash); }