This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84121] optimizer breaks code without -frwapv, but -Wall -Wextra show no warnings
- From: "noreply at nullhomotopie dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Jan 2018 09:51:42 +0000
- Subject: [Bug c/84121] optimizer breaks code without -frwapv, but -Wall -Wextra show no warnings
- Auto-submitted: auto-generated
- References: <bug-84121-4@http.gcc.gnu.org/bugzilla/>
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.