diff options
| author | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-16 06:41:10 +0000 |
|---|---|---|
| committer | apbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-16 06:41:10 +0000 |
| commit | 3e16a5be49a1ba26b6b21359e85ddec841aeb845 (patch) | |
| tree | c5bc1f6f0e067a2ca8a365c7105a44e59edfcc57 /gcc/java/expr.c | |
| parent | a1f4c3f0721504499a74e44daa2b55d17d8d673d (diff) | |
| download | ppe42-gcc-3e16a5be49a1ba26b6b21359e85ddec841aeb845.tar.gz ppe42-gcc-3e16a5be49a1ba26b6b21359e85ddec841aeb845.zip | |
2000-05-02 Jeff Sturm <jsturm@one-point.com>
* expr.c (build_class_init): Move MODIFY_EXPR
outside of COND_EXPR. Remove variable `call'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42134 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/expr.c')
| -rw-r--r-- | gcc/java/expr.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 861069d95bc..9ba0739d7d7 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1662,7 +1662,7 @@ tree build_class_init (clas, expr) tree clas, expr; { - tree init, call; + tree init; struct init_test_hash_entry *ite; if (inherits_from_p (current_class, clas)) return expr; @@ -1693,14 +1693,14 @@ build_class_init (clas, expr) build_tree_list (NULL_TREE, build_class_ref (clas)), NULL_TREE); TREE_SIDE_EFFECTS (init) = 1; - call = build (COMPOUND_EXPR, TREE_TYPE (expr), init, - build (MODIFY_EXPR, boolean_type_node, - ite->init_test_decl, boolean_true_node)); - TREE_SIDE_EFFECTS (call) = 1; init = build (COND_EXPR, void_type_node, build (EQ_EXPR, boolean_type_node, ite->init_test_decl, boolean_false_node), - call, integer_zero_node); + init, integer_zero_node); + TREE_SIDE_EFFECTS (init) = 1; + init = build (COMPOUND_EXPR, TREE_TYPE (expr), init, + build (MODIFY_EXPR, boolean_type_node, + ite->init_test_decl, boolean_true_node)); TREE_SIDE_EFFECTS (init) = 1; } |

