Commit d4c0c9f6 by Richard Guenther Committed by Richard Biener

re PR lto/41584 (WHOPR doesn't grok empty units)

2010-06-04  Richard Guenther  <rguenther@suse.de>

	PR lto/41584
	* cgraph.h (struct varpool_node): Add lto_file_data field.
	* lto-cgraph.c (input_varpool_node): Initialize it.

	lto/
	* lto.c (lto_1_to_1_map): Use the proper file_data for
	varpool nodes.

From-SVN: r160258
parent addcce04
2010-06-04 Richard Guenther <rguenther@suse.de>
PR lto/41584
* cgraph.h (struct varpool_node): Add lto_file_data field.
* lto-cgraph.c (input_varpool_node): Initialize it.
2010-06-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
......
......@@ -466,6 +466,8 @@ struct GTY((chain_next ("%h.next"), chain_prev ("%h.prev"))) varpool_node {
/* Circular list of nodes in the same comdat group if non-NULL. */
struct varpool_node *same_comdat_group;
struct ipa_ref_list ref_list;
/* File stream where this node is being written to. */
struct lto_file_decl_data * lto_file_data;
PTR GTY ((skip)) aux;
/* Ordering of all cgraph nodes. */
int order;
......
......@@ -1089,6 +1089,7 @@ input_varpool_node (struct lto_file_decl_data *file_data,
decl_index = lto_input_uleb128 (ib);
var_decl = lto_file_decl_data_get_var_decl (file_data, decl_index);
node = varpool_node (var_decl);
node->lto_file_data = file_data;
bp = lto_input_bitpack (ib);
node->externally_visible = bp_unpack_value (bp, 1);
......
2010-06-04 Richard Guenther <rguenther@suse.de>
PR lto/41584
* lto.c (lto_1_to_1_map): Use the proper file_data for
varpool nodes.
2010-05-30 Jan Hubicka <jh@suse.cz>
* lto.c (promote_var, promote_fn, lto_wpa_write_files): Dump
......
......@@ -599,6 +599,7 @@ lto_1_to_1_map (void)
{
if (vnode->alias || !vnode->needed)
continue;
file_data = vnode->lto_file_data;
slot = pointer_map_contains (pmap, file_data);
if (slot)
partition = (ltrans_partition) *slot;
......
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