comparison gcc/lto-section-in.c @ 67:f6334be47118

update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 22 Mar 2011 17:18:12 +0900
parents b7f97abdc517
children 04ced10e8804
comparison
equal deleted inserted replaced
65:65488c3d617d 67:f6334be47118
1 /* Input functions for reading LTO sections. 1 /* Input functions for reading LTO sections.
2 2
3 Copyright 2009 Free Software Foundation, Inc. 3 Copyright 2009, 2010 Free Software Foundation, Inc.
4 Contributed by Kenneth Zadeck <zadeck@naturalbridge.com> 4 Contributed by Kenneth Zadeck <zadeck@naturalbridge.com>
5 5
6 This file is part of GCC. 6 This file is part of GCC.
7 7
8 GCC is free software; you can redistribute it and/or modify it under 8 GCC is free software; you can redistribute it and/or modify it under
21 21
22 #include "config.h" 22 #include "config.h"
23 #include "system.h" 23 #include "system.h"
24 #include "coretypes.h" 24 #include "coretypes.h"
25 #include "tm.h" 25 #include "tm.h"
26 #include "toplev.h"
27 #include "tree.h" 26 #include "tree.h"
28 #include "expr.h" 27 #include "expr.h"
29 #include "flags.h" 28 #include "flags.h"
30 #include "params.h" 29 #include "params.h"
31 #include "input.h" 30 #include "input.h"
33 #include "basic-block.h" 32 #include "basic-block.h"
34 #include "tree-flow.h" 33 #include "tree-flow.h"
35 #include "cgraph.h" 34 #include "cgraph.h"
36 #include "function.h" 35 #include "function.h"
37 #include "ggc.h" 36 #include "ggc.h"
38 #include "diagnostic.h" 37 #include "diagnostic-core.h"
39 #include "except.h" 38 #include "except.h"
40 #include "vec.h" 39 #include "vec.h"
41 #include "timevar.h" 40 #include "timevar.h"
42 #include "output.h" 41 #include "output.h"
43 #include "lto-streamer.h" 42 #include "lto-streamer.h"
48 enum lto_section_type. */ 47 enum lto_section_type. */
49 const char *lto_section_name[LTO_N_SECTION_TYPES] = 48 const char *lto_section_name[LTO_N_SECTION_TYPES] =
50 { 49 {
51 "decls", 50 "decls",
52 "function_body", 51 "function_body",
53 "static_initializer", 52 "statics",
54 "cgraph", 53 "cgraph",
55 "varpool", 54 "vars",
56 "refs", 55 "refs",
57 "jump_funcs" 56 "jmpfuncs",
58 "ipa_pure_const", 57 "pureconst",
59 "ipa_reference", 58 "reference",
60 "symtab", 59 "symtab",
61 "opts", 60 "opts",
62 "cgraphopt" 61 "cgraphopt"
63 }; 62 };
64 63
431 /* Return a newly created in-decl state object. */ 430 /* Return a newly created in-decl state object. */
432 431
433 struct lto_in_decl_state * 432 struct lto_in_decl_state *
434 lto_new_in_decl_state (void) 433 lto_new_in_decl_state (void)
435 { 434 {
436 struct lto_in_decl_state *state; 435 return ggc_alloc_cleared_lto_in_decl_state ();
437
438 state = ((struct lto_in_decl_state *) ggc_alloc (sizeof (*state)));
439 memset (state, 0, sizeof (*state));
440 return state;
441 } 436 }
442 437
443 /* Delete STATE and its components. */ 438 /* Delete STATE and its components. */
444 439
445 void 440 void