From f1c35659ded1bb8caa191fffcebb32da7a40428f Mon Sep 17 00:00:00 2001 From: hubicka Date: Sat, 18 Sep 2010 21:25:29 +0000 Subject: PR tree-optimization/45605 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack. * gimple-fold.c (static_object_in_other_unit_p): New function. (canonicalize_constructor_val): Use it. (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val returning NULL. (gimple_fold_obj_type_ref_known_binfo): Use static_object_in_other_unit_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164402 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cgraphunit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 024a3bc2eed..f296fe05604 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -861,6 +861,7 @@ cgraph_analyze_functions (void) static struct varpool_node *first_analyzed_var; struct cgraph_node *node, *next; + bitmap_obstack_initialize (NULL); process_function_and_variable_attributes (first_processed, first_analyzed_var); first_processed = cgraph_nodes; @@ -971,6 +972,7 @@ cgraph_analyze_functions (void) fprintf (cgraph_dump_file, "\n\nReclaimed "); dump_cgraph (cgraph_dump_file); } + bitmap_obstack_release (NULL); first_analyzed = cgraph_nodes; ggc_collect (); } -- cgit v1.2.1