[Bug c++/84816] [7.2.0/8.0.1 x86_64] Incorrect code generation if signed overflow
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 11 18:05:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84816
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Yes, but code generation incorrect. It's not runtime yet.
The criterion is as follows: does the code invoke undefined behavior when
executed in the abstract machine specified by the C standard? If so, then the
compiler is allowed to generate object code that does anything, including
playing some music or erasing the hard drive; here it generates an infinite
loop and that's OK.
More information about the Gcc-bugs
mailing list