https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66375
Bernhard Kaindl <bernhard.kaindl at thalesgroup dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhard.kaindl@thalesgroup | |.com --- Comment #11 from Bernhard Kaindl <bernhard.kaindl at thalesgroup dot com> --- Created attachment 35735 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35735&action=edit Backport to gcc-4_9-branch/gcc-4.9.2: PR tree-optimization/66375 (wrong code fix!) Backport from mainline to gcc-4_9-branch (also applies to gcc-4.9.2): Note: Fixes wrong code for x86 and x86_64 targets (other targets apparently not affected) URL: <this attachment> Log: 2015-06-10 Bernhard Kaindl <bernhard.kai...@thalesgroup.com> Backport from mainline 2015-06-03 Richard Biener <rguent...@suse.de> PR tree-optimization/66375 * tree-scalar-evolution.c (follow_ssa_edge_binary): First add to the evolution before following SSA edges. Added: trunk/gcc/testsuite/gcc.dg/torture/pr66375.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-scalar-evolution.c The context of the ChangeLogs is removed, so it applies using "patch -p1" without ever causing a conflict (other changes may be merged before this, the ChangeLogs are automatically added on top without context matching), but it won't apply with "git apply" this way.