diff options
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r-- | gcc/lto-section-in.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index 16fd0867805..aea1c1decd4 100644 --- a/gcc/lto-section-in.c +++ b/gcc/lto-section-in.c @@ -43,6 +43,7 @@ along with GCC; see the file COPYING3. If not see #include "output.h" #include "lto-streamer.h" #include "lto-compress.h" +#include "ggc.h" /* Section names. These must correspond to the values of enum lto_section_type. */ @@ -433,7 +434,7 @@ lto_new_in_decl_state (void) { struct lto_in_decl_state *state; - state = ((struct lto_in_decl_state *) xmalloc (sizeof (*state))); + state = ((struct lto_in_decl_state *) ggc_alloc (sizeof (*state))); memset (state, 0, sizeof (*state)); return state; } @@ -447,8 +448,8 @@ lto_delete_in_decl_state (struct lto_in_decl_state *state) for (i = 0; i < LTO_N_DECL_STREAMS; i++) if (state->streams[i].trees) - free (state->streams[i].trees); - free (state); + ggc_free (state->streams[i].trees); + ggc_free (state); } /* Hashtable helpers. lto_in_decl_states are hash by their function decls. */ |