mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
2933735169
commit
ee1884cb9b
|
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* jcf-write.c (get_access_flags): Return correct access flags for
|
||||
|
|
|
|||
|
|
@ -15353,6 +15353,12 @@ build_assertion (location, condition, value)
|
|||
call = build (CALL_EXPR, NULL_TREE, id, NULL_TREE, NULL_TREE);
|
||||
call = make_qualified_primary (classdollar, call, location);
|
||||
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;
|
||||
|
||||
/* Record the initializer in the initializer statement list. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue