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 middle-end/49705] -Wstrict-overflow should not diagnose unevaluated expressions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49705

--- Comment #5 from Ian Lance Taylor <ian at airs dot com> 2011-07-12 16:42:07 UTC ---
My proposed patch also fixes the larger test case.  Without the patch I see
this:

strict-overflow-bug.c: In function âcheck_image_widthâ:
strict-overflow-bug.c:14:4: warning: assuming signed overflow does not occur
when assuming that (X + c) >= X is always true [-Wstrict-overflow]

With the patch I see no warning.  This is compiling with -O2 -Wstrict-overflow.


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