https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71124
--- Comment #2 from Thomas Petazzoni <thomas.petazz...@free-electrons.com> --- Created attachment 39970 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39970&action=edit Another test case demonstration the problem This additional test case comes from ffmpeg 3.2. This file builds fine with -Os, but makes the compiler use 100% CPU time indefinitely with -O1, -O2 or -O3.