diff gcc/lto-section-in.c @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children f6334be47118
line wrap: on
line diff
--- a/gcc/lto-section-in.c	Fri Feb 12 23:41:23 2010 +0900
+++ b/gcc/lto-section-in.c	Mon May 24 12:47:05 2010 +0900
@@ -29,7 +29,6 @@
 #include "flags.h"
 #include "params.h"
 #include "input.h"
-#include "varray.h"
 #include "hashtab.h"
 #include "basic-block.h"
 #include "tree-flow.h"
@@ -43,6 +42,7 @@
 #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,11 +52,14 @@
   "function_body",
   "static_initializer",
   "cgraph",
+  "varpool",
+  "refs",
+  "jump_funcs"
   "ipa_pure_const",
   "ipa_reference",
   "symtab",
-  "wpa_fixup",
-  "opts"
+  "opts",
+  "cgraphopt"
 };
 
 unsigned char
@@ -432,7 +435,7 @@
 {
   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;
 }
@@ -446,8 +449,8 @@
 
   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. */