*** empty log message ***

From-SVN: r9801
This commit is contained in:
Jason Merrill 1995-05-24 19:41:29 +00:00
parent 103894f118
commit 1180eb1042
2 changed files with 6 additions and 1 deletions

View File

@ -2019,6 +2019,7 @@ truthvalue_conversion (expr)
case TRUTH_AND_EXPR:
case TRUTH_OR_EXPR:
case TRUTH_XOR_EXPR:
case TRUTH_NOT_EXPR:
TREE_TYPE (expr) = boolean_type_node;
return expr;

View File

@ -4201,7 +4201,11 @@ fold (expr)
and its values must be 0 or 1.
("true" is a fixed value perhaps depending on the language,
but we don't handle values other than 1 correctly yet.) */
return invert_truthvalue (arg0);
tem = invert_truthvalue (arg0);
/* Avoid infinite recursion. */
if (TREE_CODE (tem) == TRUTH_NOT_EXPR)
return t;
return convert (type, tem);
case TRUTH_ANDIF_EXPR:
/* Note that the operands of this must be ints