From: ian Date: Fri, 23 Mar 2007 23:21:46 +0000 (+0000) Subject: * fold-const.c (fold_binary): Correct warning for X - c >= X. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558517fdc588c5634690a0745cd14415ebac493a;p=thirdparty%2Fgcc.git * fold-const.c (fold_binary): Correct warning for X - c >= X. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123172 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c32cb9c59131..6f140628c919 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-03-23 Ian Lance Taylor + + * fold-const.c (fold_binary): Correct warning for X - c >= X. + 2007-03-23 Ian Lance Taylor * tree-dump.c (dump_files): Correct comment. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index daad1ba3d41f..e4efda0f9410 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -11802,7 +11802,7 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1) if (TYPE_OVERFLOW_UNDEFINED (TREE_TYPE (arg1))) fold_overflow_warning (("assuming signed overflow does " "not occur when assuming that " - "(X - c) >= X is always true"), + "(X - c) >= X is always false"), WARN_STRICT_OVERFLOW_ALL); return constant_boolean_node (0, type); }