diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-06 13:26:28 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-07-06 13:26:28 +0000 |
commit | 864a438fb6bab4f861727ba298bfa7ea26232921 (patch) | |
tree | 68d780d02870aafdee6c0a31a283f9ed7469baff /gcc/gimple-fold.c | |
parent | b2d1762876ba5bb6106070e8f3cf6440bb43ea0d (diff) | |
download | gcc-864a438fb6bab4f861727ba298bfa7ea26232921.tar.gz |
* 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.c | 2 |
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); |