summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-29 04:39:16 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-29 04:39:16 +0000
commitc768b48b8d38dca97809ea1dc72de2cebd05b6c6 (patch)
tree2b48e3a63388183c42752ae73ac281a65cd85dd7 /gcc/ggc-page.c
parenta0a1d5635c8086d6a7e16e38b6f533da669678d8 (diff)
downloadgcc-c768b48b8d38dca97809ea1dc72de2cebd05b6c6.tar.gz
* 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
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c2
1 files changed, 1 insertions, 1 deletions
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;