This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/83433] Should -Wstrict-overflow=2 produce a diagnostic for abs(INT_MIN)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Dec 2017 00:36:29 +0000
- Subject: [Bug c/83433] Should -Wstrict-overflow=2 produce a diagnostic for abs(INT_MIN)
- Auto-submitted: auto-generated
- References: <bug-83433-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83433
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Specifically, it says
"warn about other cases where a comparison is simplified to a constant"
^^^^^^^^^^^^
Calling abs(INT_MIN) is not a comparison.