[Bug c/63358] [4.8.3 - 4.9.1] gcc -O2/-O3 wrong assembly code (crash / Segmentation fault)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 24 13:41:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63358

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Signed integer overflow is undefined behaviour, so anything can happen.

Specifically, the compiler is allowed to assume that overflow never happens,
and perform optimisations based on that assumption, so if overflow *does*
happen the results are unpredictable.



More information about the Gcc-bugs mailing list