https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67809
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- So it's legal to remove the classical "halt CPU" while (1);? Interesting... Does this apply to C++ only? I presume for libstdc++ we could add a #pragma GCC loop finite which tells GCC it can assume the loop eventually terminates.