diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/fold-const.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 658a342cdf8..50c9b83b428 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-16 James A. Morrison <phython@gcc.gnu.org> + + * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call + constant_boolean_node. + 2005-02-16 David Edelsohn <edelsohn@gnu.org> PR target/19019 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 5e2a8682c09..27e16ae95cf 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2936,8 +2936,7 @@ invert_truthvalue (tree arg) switch (code) { case INTEGER_CST: - return fold_convert (type, - build_int_cst (NULL_TREE, integer_zerop (arg))); + return constant_boolean_node (integer_zerop (arg), type); case TRUTH_AND_EXPR: return build2 (TRUTH_OR_EXPR, type, |

