https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92617
--- Comment #3 from Piotr Seweryn <piotr.seweryn at gmail dot com> --- Similar problem occurs when -O2 or -O3 is used, there is also an endless loop, however different assembler code is generated. I can also provided appropriate .ii and .s files for O2 and O3 case.