parse.y (analyze_clinit_body): Return true if the second operand of a METHOD_EXPR is nonzero.
* parse.y (analyze_clinit_body): Return true if the second operand of a METHOD_EXPR is nonzero. From-SVN: r41164
This commit is contained in:
parent
613bb86ee1
commit
2d9fea5d4b
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2001-04-06 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build
|
* Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build
|
||||||
|
@ -7546,7 +7546,7 @@ maybe_generate_pre_expand_clinit (class_type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Analyzes a method body and look for something that isn't a
|
/* Analyzes a method body and look for something that isn't a
|
||||||
MODIFY_EXPR. */
|
MODIFY_EXPR with a constant value. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
analyze_clinit_body (bbody)
|
analyze_clinit_body (bbody)
|
||||||
@ -7570,11 +7570,10 @@ analyze_clinit_body (bbody)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MODIFY_EXPR:
|
case MODIFY_EXPR:
|
||||||
bbody = NULL_TREE;
|
/* Return 0 if the operand is constant, 1 otherwise. */
|
||||||
break;
|
return ! TREE_CONSTANT (TREE_OPERAND (bbody, 1));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
bbody = NULL_TREE;
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user