From 4008290f65988de470218021818009fddeaf50dd Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 22 Dec 2014 09:54:19 +0100 Subject: New symbol_summary class introduced. * cgraph.h (symbol_table::allocate_cgraph_symbol): Summary UID is filled up. * symbol-summary.h: New file. * gengtype.c (open_base_files): Add symbol-summary.h. * toplev.c (general_init): Call constructor of symbol_table. From-SVN: r219004 --- gcc/toplev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 04f63df..7e06247 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -92,6 +92,7 @@ along with GCC; see the file COPYING3. If not see #include "dwarf2out.h" #include "bitmap.h" #include "ipa-reference.h" +#include "symbol-summary.h" #include "ipa-prop.h" #include "gcse.h" #include "insn-codes.h" @@ -1212,7 +1213,7 @@ general_init (const char *argv0) /* Create the singleton holder for global state. Doing so also creates the pass manager and with it the passes. */ g = new gcc::context (); - symtab = ggc_cleared_alloc (); + symtab = new (ggc_cleared_alloc ()) symbol_table (); statistics_early_init (); finish_params (); -- cgit v1.1