This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[tree-ssa] Gimplifying Java
- From: Andrew Haley <aph at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Jun 2003 16:07:32 +0100
- Subject: [tree-ssa] Gimplifying Java
- References: <Pine.LNX.4.44.0306111928540.10620-100000@ops2.one-point.com>
Is this one right? I thought the copy-in and out of the temporary was
necessary on some architectures.
*** 12780,12787 ****
tree assignment
= build (MODIFY_EXPR, TREE_TYPE (new_rhs), tmp, fold (new_rhs));
BLOCK_VARS (block) = tmp;
- BLOCK_EXPR_BODY (block)
- = build (COMPOUND_EXPR, TREE_TYPE (new_rhs), assignment, tmp);
TREE_SIDE_EFFECTS (block) = 1;
new_rhs = block;
}
--- 12794,12800 ----
tree assignment
= build (MODIFY_EXPR, TREE_TYPE (new_rhs), tmp, fold (new_rhs));
BLOCK_VARS (block) = tmp;
+ BLOCK_EXPR_BODY (block) = assignment;
TREE_SIDE_EFFECTS (block) = 1;
new_rhs = block;
}
Andrew.