Commit b9e57365 by Jan Hubicka Committed by Jan Hubicka

lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl of thunks.


	* lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
	of thunks.

From-SVN: r174482
parent e67e39c2
2011-05-31 Jan Hubicka <jh@suse.cz>
* lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
of thunks.
2011-05-31 Jakub Jelinek <jakub@redhat.com> 2011-05-31 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/49235 PR rtl-optimization/49235
......
...@@ -821,11 +821,15 @@ lto_symtab_merge_cgraph_nodes (void) ...@@ -821,11 +821,15 @@ lto_symtab_merge_cgraph_nodes (void)
htab_traverse (lto_symtab_identifiers, lto_symtab_merge_cgraph_nodes_1, NULL); htab_traverse (lto_symtab_identifiers, lto_symtab_merge_cgraph_nodes_1, NULL);
for (node = cgraph_nodes; node; node = node->next) for (node = cgraph_nodes; node; node = node->next)
for (alias = node->same_body; alias; alias = next) {
{ if (node->thunk.thunk_p)
next = alias->next; node->thunk.alias = lto_symtab_prevailing_decl (node->thunk.alias);
alias->thunk.alias = lto_symtab_prevailing_decl (alias->thunk.alias); for (alias = node->same_body; alias; alias = next)
} {
next = alias->next;
alias->thunk.alias = lto_symtab_prevailing_decl (alias->thunk.alias);
}
}
} }
/* Given the decl DECL, return the prevailing decl with the same name. */ /* Given the decl DECL, return the prevailing decl with the same name. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment