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/83433] Should -Wstrict-overflow=2 produce a diagnostic for abs(INT_MIN)


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.

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