From 1b14621a8872935ef001dacb5137577185421533 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 21 May 2013 15:49:30 +0200 Subject: [PATCH] re PR lto/57289 (ICE during 454.calculix compilation with -O3 -flto) 2013-05-21 Martin Jambor 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 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-prop.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6542269805d..ffd389e9479 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2013-05-21 Martin Jambor + + 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 PR plugins/56754 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index abf21c98215..ae2a823a4e5 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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);