https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93041
fxue at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxue at gcc dot gnu.org --- Comment #3 from fxue at gcc dot gnu.org --- For gcc10, by default, a loop containing an exit, although it might not be a real exit, is considered as finite, which is controlled by a newly introduced option -finite-loops. To be compatible with old behavior, you can explicitly add -fno-finite-loops.