From: hubicka Date: Tue, 8 Dec 2015 22:03:36 +0000 (+0000) Subject: PR ipa/61886 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2c990fdf3f29d0b4aaf01f9cecdd311c6f06ee;p=thirdparty%2Fgcc.git PR ipa/61886 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets into the boundary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231430 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 55f89c9fd588..4ee6a3258706 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-12-08 Jan Hubicka + + PR ipa/61886 + * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets + into the boundary. + 2015-12-08 Jan Hubicka PR ipa/61886 diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index e1c259593d95..62e54547d574 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -972,6 +972,15 @@ compute_ltrans_boundary (lto_symtab_encoder_t in_encoder) if (cnode && cnode->thunk.thunk_p) add_node_to (encoder, cnode->callees->callee, false); + while (node->transparent_alias && node->analyzed) + { + node = node->get_alias_target (); + if (is_a (node)) + add_node_to (encoder, dyn_cast (node), + false); + else + lto_symtab_encoder_encode (encoder, node); + } } lto_symtab_encoder_delete (in_encoder); return encoder;