+2009-12-15 Richard Guenther <rguenther@suse.de>
+
+ * lto-cgraph.c (lto_output_node): Also stream the alias
+ for regular aliases.
+ (input_node): Likewise.
+
2009-12-15 Paolo Bonzini <bonzini@gnu.org>
Shujing Zhao <pearly.zhao@oracle.com>
alias->thunk.alias);
}
else
- lto_output_uleb128_stream (ob->main_stream, 0);
+ {
+ lto_output_uleb128_stream (ob->main_stream, 0);
+ lto_output_fn_decl_index (ob->decl_state, ob->main_stream,
+ alias->thunk.alias);
+ }
alias = alias->previous;
}
while (alias);
alias_decl = lto_file_decl_data_get_fn_decl (file_data, decl_index);
type = lto_input_uleb128 (ib);
if (!type)
- cgraph_same_body_alias (alias_decl, fn_decl);
+ {
+ tree real_alias;
+ decl_index = lto_input_uleb128 (ib);
+ real_alias = lto_file_decl_data_get_fn_decl (file_data, decl_index);
+ cgraph_same_body_alias (alias_decl, real_alias);
+ }
else
{
HOST_WIDE_INT fixed_offset = lto_input_uleb128 (ib);