From c5d1f058528f7d400211b010d8a48201611688b8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 6 Jul 2010 15:26:28 +0200 Subject: lto-streamer.c (write_symbol_vec): Rename to ... * lto-streamer.c (write_symbol_vec): Rename to ... (write_symbol) ... this one; write only symbol given and when present in cache. Sanity check that what is defined is present in cgraph/varpool with body/finalized decl. (write_symbols_of_kind): Remove. (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias pairs to produce symtab. (produce_asm_for_decls): Update call of produce_symtab; don't do so when doing WPA streaming. From-SVN: r161868 --- gcc/gimple-fold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gimple-fold.c') diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 659102b988b..5bf82822a90 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -1368,7 +1368,7 @@ gimple_fold_obj_type_ref_known_binfo (HOST_WIDE_INT token, tree known_binfo) devirtualize. This can happen in WHOPR when the actual method ends up in other partition, because we found devirtualization possibility too late. */ - if ((!node || !node->analyzed) + if ((!node || (!node->analyzed && !node->in_other_partition)) && (!TREE_PUBLIC (fndecl) || DECL_COMDAT (fndecl))) return NULL; return build_fold_addr_expr (fndecl); -- cgit v1.2.1