re PR lto/57289 (ICE during 454.calculix compilation with -O3 -flto)

2013-05-21  Martin Jambor  <mjambor@suse.cz>

	PR lto/57289
	* ipa-prop.c (ipa_read_node_info): Process param_used and
	controlled_uses in the same order as when writing.

From-SVN: r199145
This commit is contained in:
Martin Jambor 2013-05-21 15:49:30 +02:00 committed by Martin Jambor
parent e60661f091
commit 1b14621a88
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2013-05-21 Martin Jambor <mjambor@suse.cz>
PR lto/57289
* ipa-prop.c (ipa_read_node_info): Process param_used and
controlled_uses in the same order as when writing.
2013-05-21 Magnus Granberg <baldrick@free.fr>
PR plugins/56754

View file

@ -3848,10 +3848,10 @@ ipa_read_node_info (struct lto_input_block *ib, struct cgraph_node *node,
if (ipa_get_param_count (info) != 0)
info->uses_analysis_done = true;
info->node_enqueued = false;
for (k = 0; k < ipa_get_param_count (info); k++)
ipa_set_controlled_uses (info, k, streamer_read_hwi (ib));
for (k = 0; k < ipa_get_param_count (info); k++)
ipa_set_param_used (info, k, bp_unpack_value (&bp, 1));
for (k = 0; k < ipa_get_param_count (info); k++)
ipa_set_controlled_uses (info, k, streamer_read_hwi (ib));
for (e = node->callees; e; e = e->next_callee)
{
struct ipa_edge_args *args = IPA_EDGE_REF (e);