diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index f8930b9..9886652 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -242,7 +242,7 @@ get_unnamed_section (unsigned int flags, void (*callback) (const void *), { section *sect; - sect = ggc_alloc_section (); + sect = ggc_alloc<section> (); sect->unnamed.common.flags = flags | SECTION_UNNAMED; sect->unnamed.callback = callback; sect->unnamed.data = data; @@ -259,7 +259,7 @@ get_noswitch_section (unsigned int flags, noswitch_section_callback callback) { section *sect; - sect = ggc_alloc_section (); + sect = ggc_alloc<section> (); sect->noswitch.common.flags = flags | SECTION_NOSWITCH; sect->noswitch.callback = callback; @@ -280,7 +280,7 @@ get_section (const char *name, unsigned int flags, tree decl) flags |= SECTION_NAMED; if (*slot == NULL) { - sect = ggc_alloc_section (); + sect = ggc_alloc<section> (); sect->named.common.flags = flags; sect->named.name = ggc_strdup (name); sect->named.decl = decl; @@ -361,7 +361,7 @@ get_block_for_section (section *sect) block = (struct object_block *) *slot; if (block == NULL) { - block = ggc_alloc_cleared_object_block (); + block = ggc_cleared_alloc<object_block> (); block->sect = sect; *slot = block; } @@ -381,7 +381,7 @@ create_block_symbol (const char *label, struct object_block *block, /* Create the extended SYMBOL_REF. */ size = RTX_HDR_SIZE + sizeof (struct block_symbol); - symbol = ggc_alloc_rtx_def (size); + symbol = (rtx) ggc_internal_alloc (size); /* Initialize the normal SYMBOL_REF fields. */ memset (symbol, 0, size); @@ -3203,7 +3203,7 @@ build_constant_desc (tree exp) int labelno; tree decl; - desc = ggc_alloc_constant_descriptor_tree (); + desc = ggc_alloc<constant_descriptor_tree> (); desc->value = copy_constant (exp); /* Create a string containing the label name, in LABEL. */ @@ -3616,7 +3616,7 @@ create_constant_pool (void) { struct rtx_constant_pool *pool; - pool = ggc_alloc_rtx_constant_pool (); + pool = ggc_alloc<rtx_constant_pool> (); pool->const_rtx_htab = htab_create_ggc (31, const_desc_rtx_hash, const_desc_rtx_eq, NULL); pool->first = NULL; @@ -3682,7 +3682,7 @@ force_const_mem (enum machine_mode mode, rtx x) return copy_rtx (desc->mem); /* Otherwise, create a new descriptor. */ - desc = ggc_alloc_constant_descriptor_rtx (); + desc = ggc_alloc<constant_descriptor_rtx> (); *slot = desc; /* Align the location counter as required by EXP's data type. */ @@ -5712,7 +5712,7 @@ record_tm_clone_pair (tree o, tree n) if (tm_clone_hash == NULL) tm_clone_hash = htab_create_ggc (32, tree_map_hash, tree_map_eq, 0); - h = ggc_alloc_tree_map (); + h = ggc_alloc<tree_map> (); h->hash = htab_hash_pointer (o); h->base.from = o; h->to = n; |