https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109513
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > This is interesting because the C++ front-end causes slightly different IR > and with __builtin_unreachable produces decent code at -O3 still. The difference is due to -ffinite-loops .