aboutsummaryrefslogtreecommitdiff
path: root/gcc/hashtable.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-08-11 21:47:39 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-08-11 21:47:39 +0000
commit29da5c928805b6d8ea99294dc9a46af15edc5256 (patch)
tree94bcf5915821086716a7469523e1815e7340f194 /gcc/hashtable.c
parent1705e37dbbe626bb8f57ba765c03525a8e4570ed (diff)
downloadgcc-29da5c928805b6d8ea99294dc9a46af15edc5256.zip
gcc-29da5c928805b6d8ea99294dc9a46af15edc5256.tar.gz
gcc-29da5c928805b6d8ea99294dc9a46af15edc5256.tar.bz2
avr.c (avr_init_once): Use xcalloc in lieu of xmalloc/memset.
* config/avr/avr.c (avr_init_once): Use xcalloc in lieu of xmalloc/memset. * config/ia64/ia64.c (ia64_reorg): Likewise. * conflict.c (conflict_graph_new): Likewise. * fixinc/fixincl.c (run_compiles): Likewise. * genattrtab.c (optimize_attrs): Likewise. * genrecog.c (new_decision): Likewise. * haifa-sched.c (schedule_block): Likewise. * hashtable.c (ht_create): Likewise. From-SVN: r70337
Diffstat (limited to 'gcc/hashtable.c')
-rw-r--r--gcc/hashtable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/hashtable.c b/gcc/hashtable.c
index ea7d2b0..4155139 100644
--- a/gcc/hashtable.c
+++ b/gcc/hashtable.c
@@ -58,8 +58,7 @@ ht_create (unsigned int order)
unsigned int nslots = 1 << order;
hash_table *table;
- table = xmalloc (sizeof (hash_table));
- memset (table, 0, sizeof (hash_table));
+ table = xcalloc (1, sizeof (hash_table));
/* Strings need no alignment. */
_obstack_begin (&table->stack, 0, 0,