From f870ab63f94d1590f07a6eb6da79ee713989b8f3 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 23 Mar 2007 23:21:46 +0000 Subject: [PATCH] * fold-const.c (fold_binary): Correct warning for X - c >= X. From-SVN: r123172 --- gcc/ChangeLog | 4 ++++ gcc/fold-const.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c32cb9c5913..6f140628c91 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 daad1ba3d41..e4efda0f941 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); }