From c768b48b8d38dca97809ea1dc72de2cebd05b6c6 Mon Sep 17 00:00:00 2001 From: ghazi Date: Sun, 29 Jun 2008 04:39:16 +0000 Subject: * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings. * df-scan.c (df_notes_rescan): Likewise. * ggc-page.c (set_page_table_entry): Likewise. * intl.c (gcc_gettext_width): Likewise. * varasm.c (get_unnamed_section, get_noswitch_section, get_section): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137245 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ggc-page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ggc-page.c') diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 14e0776a1a6..4ac73d4af4f 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -610,7 +610,7 @@ set_page_table_entry (void *p, page_entry *entry) goto found; /* Not found -- allocate a new table. */ - table = xcalloc (1, sizeof(*table)); + table = XCNEW (struct page_table_chain); table->next = G.lookup; table->high_bits = high_bits; G.lookup = table; -- cgit v1.2.1