Commit ee1884cb by Jesse Rosenstock Committed by Tom Tromey

For PR java/7483:

2002-08-13  Jesse Rosenstock  <jmr@fulcrummicro.com>

	For PR java/7483:
	* parse.y (build_assertion): Invert return from
	desiredAssertionStatus.

From-SVN: r56264
parent 29337351
2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>
For PR java/7483:
* parse.y (build_assertion): Invert return from
desiredAssertionStatus.
2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* jcf-write.c (get_access_flags): Return correct access flags for * jcf-write.c (get_access_flags): Return correct access flags for
......
...@@ -15353,6 +15353,12 @@ build_assertion (location, condition, value) ...@@ -15353,6 +15353,12 @@ build_assertion (location, condition, value)
call = build (CALL_EXPR, NULL_TREE, id, NULL_TREE, NULL_TREE); call = build (CALL_EXPR, NULL_TREE, id, NULL_TREE, NULL_TREE);
call = make_qualified_primary (classdollar, call, location); call = make_qualified_primary (classdollar, call, location);
TREE_SIDE_EFFECTS (call) = 1; TREE_SIDE_EFFECTS (call) = 1;
/* Invert to obtain !CLASS.desiredAssertionStatus(). This may
seem odd, but we do it to generate code identical to that of
the JDK. */
call = build1 (TRUTH_NOT_EXPR, NULL_TREE, call);
TREE_SIDE_EFFECTS (call) = 1;
DECL_INITIAL (field) = call; DECL_INITIAL (field) = call;
/* Record the initializer in the initializer statement list. */ /* Record the initializer in the initializer statement list. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment