re PR lto/47497 (SPEC CPU 2006 failed to link with LTO -fuse-linker-plugin -fwhole...
authorJan Hubicka <jh@suse.cz>
Fri, 4 Mar 2011 18:49:23 +0000 (19:49 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 4 Mar 2011 18:49:23 +0000 (18:49 +0000)
commit87e7b310b3ddd203c446233d1517358e3708d9d7
treea02cdefa6ac453edbd6d7e2b499c42469f9df485
parentd9c642462049486d1dbf560686723313193baf43
re PR lto/47497 (SPEC CPU 2006 failed to link with LTO -fuse-linker-plugin -fwhole-program)

PR lto/47497
* lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
(lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
* cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
* cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
cgraph_add_thunk): Add node pointers.
* lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
associated to right node.
(input_node): Update use of cgraph_same_body_alias
and cgraph_add_thunk.

* optimize.c (maybe_clone_body): Update call of cgraph_same_body_alias
and cgraph_add_thunk.
* method.c (make_alias_for_thunk, use_thunk): Likewise.
* mangle.c (mangle_decl): Likewise.

From-SVN: r170682
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/cp/method.c
gcc/cp/optimize.c
gcc/lto-cgraph.c
gcc/lto-symtab.c