This is the mail archive of the gcc-patches@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]

Fix PR 33738


This re-applies the fix for PR 33738 on mainline
(http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html).  This
version incorporates the feedback I received.

RMs, this patch was rejected for 4.3 because it came in too late in
stage3.  Would it be possible to apply it on 4.3.1 when it opens?
Thanks.


Tested on x86-64 and ppc64.

        PR 33738
        * tree-vrp.c (vrp_evaluate_conditional): With
        -Wtype-limits, emit a warning when comparing against a
        constant outside the natural range of OP0's type.
        * c.opt (Wtype-limits): Move ...
        * common.opt (Wtype-limits): ... here.

testsuite/ChangeLog

        PR 33738
        * g++.dg/warn/pr33738.C: New.



Diego.

Attachment: 20080223-33738.diff.txt
Description: Text document


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