This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/42512] [4.5 Regression] integer wrong code bug with loop
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2009 14:43:14 -0000
- Subject: [Bug middle-end/42512] [4.5 Regression] integer wrong code bug with loop
- References: <bug-42512-12544@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ebotcazou at gcc dot gnu dot org 2009-12-27 14:43 -------
> It may be caused by revision 147716:
>
> http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00693.html
Same trigger as the other so the same partial reversion works:
Index: tree-scalar-evolution.c
===================================================================
--- tree-scalar-evolution.c (revision 155361)
+++ tree-scalar-evolution.c (working copy)
@@ -1159,7 +1159,7 @@ follow_ssa_edge_expr (struct loop *loop,
switch (code)
{
- CASE_CONVERT:
+ case NOP_EXPR:
/* This assignment is under the form "a_1 = (cast) rhs. */
res = follow_ssa_edge_expr (loop, at_stmt, TREE_OPERAND (expr, 0),
halting_phi, evolution_of_loop, limit);
@@ -1222,7 +1222,7 @@ follow_ssa_edge_in_rhs (struct loop *loo
switch (code)
{
- CASE_CONVERT:
+ case NOP_EXPR:
/* This assignment is under the form "a_1 = (cast) rhs. */
res = follow_ssa_edge_expr (loop, stmt, gimple_assign_rhs1 (stmt),
halting_phi, evolution_of_loop, limit);
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42512