[Bug middle-end/93041] GCC 10 removes an infinite loop and causes a null pointer to dereferenced
fxue at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 23 08:12:00 GMT 2019
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.
More information about the Gcc-bugs
mailing list