diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-24 16:40:32 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-24 16:40:32 +0000 |
commit | 100b67dab1b474045ad0fe0136894bf545caa23e (patch) | |
tree | 771c35c481fdb2bb880ce72ab481848d5c8a4fa6 /gcc/c.opt | |
parent | 2aeab935658057b970d1e341010359c6648eaa8e (diff) | |
download | gcc-100b67dab1b474045ad0fe0136894bf545caa23e.tar.gz |
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132591 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 94f0398419d..72165b96660 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -123,10 +123,6 @@ Wall C ObjC C++ ObjC++ Warning Enable most warning messages -Wtype-limits -C ObjC C++ ObjC++ Var(warn_type_limits) Init(-1) Warning -Warn if a comparison is always true or always false due to the limited range of the data type - Wassign-intercept ObjC ObjC++ Var(warn_assign_intercept) Warning Warn whenever an Objective-C assignment is being intercepted by the garbage collector |