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

2005-02-16  James A. Morrison  <phython@gcc.gnu.org>

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

From-SVN: r95146
This commit is contained in:
James A. Morrison 2005-02-17 03:03:32 +00:00
parent d983bb5192
commit 9ace7f9e63
2 changed files with 6 additions and 2 deletions

View 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

View 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,