fold-const.c (invert_truthvalue): <INTEGER_CST>: Call constant_boolean_node.
authorJames A. Morrison <phython@gcc.gnu.org>
Thu, 17 Feb 2005 03:03:32 +0000 (03:03 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Thu, 17 Feb 2005 03:03:32 +0000 (03:03 +0000)
2005-02-16  James A. Morrison  <phython@gcc.gnu.org>

        * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
        constant_boolean_node.

From-SVN: r95146

gcc/ChangeLog
gcc/fold-const.c

index 658a342..50c9b83 100644 (file)
@@ -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
index 5e2a868..27e16ae 100644 (file)
@@ -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,