aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-07-06 15:26:28 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-07-06 13:26:28 +0000
commitc5d1f058528f7d400211b010d8a48201611688b8 (patch)
tree68d780d02870aafdee6c0a31a283f9ed7469baff /gcc/gimple-fold.c
parentd414dde979f412075132fae7d1c4a242850db642 (diff)
downloadgcc-c5d1f058528f7d400211b010d8a48201611688b8.zip
gcc-c5d1f058528f7d400211b010d8a48201611688b8.tar.gz
gcc-c5d1f058528f7d400211b010d8a48201611688b8.tar.bz2
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
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index 659102b..5bf8282 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);