summaryrefslogtreecommitdiffstats
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-06 13:26:28 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-06 13:26:28 +0000
commit864a438fb6bab4f861727ba298bfa7ea26232921 (patch)
tree68d780d02870aafdee6c0a31a283f9ed7469baff /gcc/gimple-fold.c
parentb2d1762876ba5bb6106070e8f3cf6440bb43ea0d (diff)
downloadppe42-gcc-864a438fb6bab4f861727ba298bfa7ea26232921.tar.gz
ppe42-gcc-864a438fb6bab4f861727ba298bfa7ea26232921.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161868 138bc75d-0d04-0410-961f-82ee72b054a4
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 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);
OpenPOWER on IntegriCloud