]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* fold-const.c (fold_binary): Correct warning for X - c >= X.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2007 23:21:46 +0000 (23:21 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 Mar 2007 23:21:46 +0000 (23:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123172 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fold-const.c

index c32cb9c591314c2d58579ca897c9efdde47d14b8..6f140628c919d7375b5a22f645fe4281ae599226 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-23  Ian Lance Taylor  <iant@google.com>
+
+       * fold-const.c (fold_binary): Correct warning for X - c >= X.
+
 2007-03-23  Ian Lance Taylor  <iant@google.com>
 
        * tree-dump.c (dump_files): Correct comment.
index daad1ba3d41f5ba6840bc5f23c9598c8ff709d35..e4efda0f9410f9d6c5eceaccb177fa1b42d7c506 100644 (file)
@@ -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);
                }