This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]