summaryrefslogtreecommitdiff
path: root/gcc/target-globals.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-07 02:14:58 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-07 02:14:58 +0000
commitea7d8c7a9c53e45fa4482196a935142467a82403 (patch)
treec97833ceb01a286f01ced7b954c325c8d001d804 /gcc/target-globals.c
parentdc7cdd37ee1a4fc369a582df56a4aa0e32baede3 (diff)
downloadgcc-ea7d8c7a9c53e45fa4482196a935142467a82403.tar.gz
* parser.c (synthesize_implicit_template_parm): Use grow_tree_vec.
* ggc.h (ggc_internal_cleared_alloc): New macro. * vec.h (vec_safe_copy): Handle memory stats. * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc. * target-globals.c (save_target_globals): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207588 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target-globals.c')
-rw-r--r--gcc/target-globals.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/gcc/target-globals.c b/gcc/target-globals.c
index 8d3eaa89041..7cf95aeeddf 100644
--- a/gcc/target-globals.c
+++ b/gcc/target-globals.c
@@ -79,29 +79,21 @@ save_target_globals (void)
struct target_lower_subreg lower_subreg;
} *p;
p = (struct target_globals_extra *)
- ggc_internal_cleared_alloc_stat (sizeof (struct target_globals_extra)
- PASS_MEM_STAT);
+ ggc_internal_cleared_alloc (sizeof (struct target_globals_extra));
g = (struct target_globals *) p;
g->flag_state = &p->flag_state;
- g->regs = ggc_internal_cleared_alloc_stat (sizeof (struct target_regs)
- PASS_MEM_STAT);
+ g->regs = ggc_internal_cleared_alloc (sizeof (struct target_regs));
g->rtl = ggc_alloc_cleared_target_rtl ();
g->hard_regs
- = ggc_internal_cleared_alloc_stat (sizeof (struct target_hard_regs)
- PASS_MEM_STAT);
- g->reload = ggc_internal_cleared_alloc_stat (sizeof (struct target_reload)
- PASS_MEM_STAT);
- g->expmed = ggc_internal_cleared_alloc_stat (sizeof (struct target_expmed)
- PASS_MEM_STAT);
+ = ggc_internal_cleared_alloc (sizeof (struct target_hard_regs));
+ g->reload = ggc_internal_cleared_alloc (sizeof (struct target_reload));
+ g->expmed = ggc_internal_cleared_alloc (sizeof (struct target_expmed));
g->optabs = &p->optabs;
g->libfuncs = ggc_alloc_cleared_target_libfuncs ();
g->cfgloop = &p->cfgloop;
- g->ira = ggc_internal_cleared_alloc_stat (sizeof (struct target_ira)
- PASS_MEM_STAT);
- g->ira_int = ggc_internal_cleared_alloc_stat (sizeof (struct target_ira_int)
- PASS_MEM_STAT);
- g->lra_int = ggc_internal_cleared_alloc_stat (sizeof (struct target_lra_int)
- PASS_MEM_STAT);
+ g->ira = ggc_internal_cleared_alloc (sizeof (struct target_ira));
+ g->ira_int = ggc_internal_cleared_alloc (sizeof (struct target_ira_int));
+ g->lra_int = ggc_internal_cleared_alloc (sizeof (struct target_lra_int));
g->builtins = &p->builtins;
g->gcse = &p->gcse;
g->bb_reorder = &p->bb_reorder;