[Bug c/84121] optimizer breaks code without -frwapv, but -Wall -Wextra show no warnings

noreply at nullhomotopie dot de gcc-bugzilla@gcc.gnu.org
Tue Jan 30 09:51:00 GMT 2018


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

Christian Nassau <noreply at nullhomotopie dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #4 from Christian Nassau <noreply at nullhomotopie dot de> ---
This link clarified the issue for me ("Signed integer overflow is undefined
behavior"):
  
https://wiki.sei.cmu.edu/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow

Sorry for the noise and thanks for looking into this so quickly.


More information about the Gcc-bugs mailing list