* parse.y (analyze_clinit_body): Return true if the second operand
of a METHOD_EXPR is nonzero.
From-SVN: r41164
+2001-04-06 Tom Tromey <tromey@redhat.com>
+
+ * parse.y (analyze_clinit_body): Return true if the second operand
+ of a METHOD_EXPR is nonzero.
+
2001-04-06 Tom Tromey <tromey@redhat.com>
* Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build
}
/* Analyzes a method body and look for something that isn't a
- MODIFY_EXPR. */
+ MODIFY_EXPR with a constant value. */
static int
analyze_clinit_body (bbody)
break;
case MODIFY_EXPR:
- bbody = NULL_TREE;
- break;
+ /* Return 0 if the operand is constant, 1 otherwise. */
+ return ! TREE_CONSTANT (TREE_OPERAND (bbody, 1));
default:
- bbody = NULL_TREE;
return 1;
}
return 0;