http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56962
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-04-15 AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-15 10:15:16 UTC --- Created attachment 29873 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29873 gcc49-pr56962.patch Untested fix. CAND_ADD can apparently be set even on c->cand_stmt which isn't a addition (e.g. cast of the addition etc.), plus by just silently assuming that if rhs1 isn't equal to c->base_expr, then rhs2 is, doesn't work in all cases. In particular, c->cand_stmt can be e.g. addition of two SSA_NAMEs where each one of those adds in some part, not equal to c->base_expr.