From: Andrew Pinski Date: Tue, 8 Jun 2004 13:27:38 +0000 (+0000) Subject: re PR java/15769 (ICE: infinite recursion through gimplify_expr) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1b69e3ca2ede08266a6dd101f2903b08db71eb6;p=gcc.git re PR java/15769 (ICE: infinite recursion through gimplify_expr) 2004-06-08 Andrew Pinski PR java/15769 * expr.c (java_truthvalue_conversion): Handle UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR, ORDERED_EXPR, and UNORDERED_EXPR as comparison operators, i.e. return the expression. From-SVN: r82756 --- diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 967233accac..6c8af8a2895 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,11 @@ +2004-06-08 Andrew Pinski + + PR java/15769 + * expr.c (java_truthvalue_conversion): Handle + UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR, + ORDERED_EXPR, and UNORDERED_EXPR as comparison operators, + i.e. return the expression. + 2004-06-03 Mark G. Adams * gjavah.c: Include version.h diff --git a/gcc/java/expr.c b/gcc/java/expr.c index aa0697420a0..86a7899c9a8 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -160,12 +160,16 @@ java_truthvalue_conversion (tree expr) switch (TREE_CODE (expr)) { - case EQ_EXPR: - case NE_EXPR: case LE_EXPR: case GE_EXPR: case LT_EXPR: case GT_EXPR: + case EQ_EXPR: case NE_EXPR: case UNEQ_EXPR: case LTGT_EXPR: + case LE_EXPR: case GE_EXPR: case LT_EXPR: case GT_EXPR: + case UNLE_EXPR: case UNGE_EXPR: case UNLT_EXPR: case UNGT_EXPR: + case ORDERED_EXPR: case UNORDERED_EXPR: case TRUTH_ANDIF_EXPR: case TRUTH_ORIF_EXPR: case TRUTH_AND_EXPR: case TRUTH_OR_EXPR: + case TRUTH_XOR_EXPR: + case TRUTH_NOT_EXPR: case ERROR_MARK: return expr;