diff options
author | Jan Hubicka <jh@suse.cz> | 2011-03-04 19:49:23 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-03-04 18:49:23 +0000 |
commit | 87e7b310b3ddd203c446233d1517358e3708d9d7 (patch) | |
tree | a02cdefa6ac453edbd6d7e2b499c42469f9df485 /gcc/cgraph.h | |
parent | d9c642462049486d1dbf560686723313193baf43 (diff) | |
download | gcc-87e7b310b3ddd203c446233d1517358e3708d9d7.tar.gz |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index c00418d5888..e2d2f50ca3e 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -559,8 +559,8 @@ struct cgraph_indirect_call_info *cgraph_allocate_init_indirect_info (void); struct cgraph_node * cgraph_get_node (const_tree); struct cgraph_node * cgraph_get_node_or_alias (const_tree); struct cgraph_node * cgraph_node (tree); -struct cgraph_node * cgraph_same_body_alias (tree, tree); -struct cgraph_node * cgraph_add_thunk (tree, tree, bool, HOST_WIDE_INT, +struct cgraph_node * cgraph_same_body_alias (struct cgraph_node *, tree, tree); +struct cgraph_node * cgraph_add_thunk (struct cgraph_node *, tree, tree, bool, HOST_WIDE_INT, HOST_WIDE_INT, tree, tree); void cgraph_remove_same_body_alias (struct cgraph_node *); struct cgraph_node *cgraph_node_for_asm (tree); |