http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57798
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |mikael at gcc dot
gnu.org
--- Comment #4 from Mikael Morin <mikael at gcc dot gnu.org> ---
Created attachment 30677
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30677&action=edit
Patch moving the preliminary code before the outermost loop.
I suppose the regression appeared at r190097.
I'm the author, but I think the bug was just latent before.
However, as I'm the one who introduced nested loops with sum, I'm the culprit
in any case. :-(
The patch above (against 4.9-20130715) fixes the problem here.