X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Flto-section-in.c;h=4f2ae4ff37fddac3b608008ce7156ab07c01da90;hp=6d081d8c1977adaac9969b070d31b1dee7495dfe;hb=a858fcb70e3a0e58282e435098fd34b169199bbc;hpb=b8d89de21839d7c4df1e3215c168a816a298e17d diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index 6d081d8c197..4f2ae4ff37f 100644 --- a/gcc/lto-section-in.c +++ b/gcc/lto-section-in.c @@ -29,6 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "flags.h" #include "params.h" #include "input.h" +#include "varray.h" #include "hashtab.h" #include "basic-block.h" #include "tree-flow.h" @@ -42,7 +43,6 @@ 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. */ @@ -52,14 +52,10 @@ const char *lto_section_name[LTO_N_SECTION_TYPES] = "function_body", "static_initializer", "cgraph", - "varpool", - "refs", - "jump_funcs" "ipa_pure_const", "ipa_reference", "symtab", - "opts", - "cgraphopt" + "opts" }; unsigned char @@ -435,7 +431,7 @@ lto_new_in_decl_state (void) { struct lto_in_decl_state *state; - state = ((struct lto_in_decl_state *) ggc_alloc (sizeof (*state))); + state = ((struct lto_in_decl_state *) xmalloc (sizeof (*state))); memset (state, 0, sizeof (*state)); return state; } @@ -449,8 +445,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) - ggc_free (state->streams[i].trees); - ggc_free (state); + free (state->streams[i].trees); + free (state); } /* Hashtable helpers. lto_in_decl_states are hash by their function decls. */