http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54824
--- Comment #2 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2012-10-10 06:13:05 UTC --- Created attachment 28409 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28409 Testcase #2 Another testcase. Compile with `-O2 -funswitch-loops' (or with `-O3'). GCC 20120408 (r186227) - fails, 20120325 (r185782) - works. The first testcase is still valid, but compile it with `-O -flto -shared'.