From: James A. Morrison Date: Thu, 17 Feb 2005 03:03:32 +0000 (+0000) Subject: fold-const.c (invert_truthvalue): : Call constant_boolean_node. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ace7f9e63003ce68a064a370b023ff71283a976;p=gcc.git fold-const.c (invert_truthvalue): : Call constant_boolean_node. 2005-02-16 James A. Morrison * fold-const.c (invert_truthvalue): : Call constant_boolean_node. From-SVN: r95146 --- 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 + + * fold-const.c (invert_truthvalue): : Call + constant_boolean_node. + 2005-02-16 David Edelsohn 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,