summaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2014-03-14 11:49:05 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2014-03-14 11:49:05 +0100
commit3d354792e623c04384497eb5f9c06e0c87f49a19 (patch)
tree186bdc74d530ef224645e86ec3d111193889beca /gcc/ipa-prop.c
parent5cbf2c71aace25db3a0c2b9727de135acea7877b (diff)
downloadgcc-3d354792e623c04384497eb5f9c06e0c87f49a19.tar.gz
re PR lto/60461 (LTO linking error at -Os (and above) on x86_64-linux-gnu)
2014-03-13 Martin Jambor <mjambor@suse.cz> PR lto/60461 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition and simplify it. testsuite/ * gcc.dg/lto/pr60461_0.c: New test. From-SVN: r208566
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 4fb916aa01f..9f144fa3442 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -3900,8 +3900,7 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, gimple stmt,
ipa_record_stmt_references (current_node, gsi_stmt (gsi));
gsi_prev (&gsi);
}
- while ((gsi_end_p (prev_gsi) && !gsi_end_p (gsi))
- || (!gsi_end_p (prev_gsi) && gsi_stmt (gsi) == gsi_stmt (prev_gsi)));
+ while (gsi_stmt (gsi) != gsi_stmt (prev_gsi));
}
/* If the expression *EXPR should be replaced by a reduction of a parameter, do