diff options
author | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-14 02:02:37 +0000 |
---|---|---|
committer | rmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-14 02:02:37 +0000 |
commit | 2d18e01b5061bbecbc27087f8646e54f5aaaa53a (patch) | |
tree | 7bc36e5c02bfe556e6ddd522675e802f190d32c2 | |
parent | 8f20ca1e5af23c80f4135c36dabf5ba64741b32f (diff) | |
download | gcc-2d18e01b5061bbecbc27087f8646e54f5aaaa53a.tar.gz |
* java-gimplify.c (java_gimplify_expr): Correct minor typos.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81825 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/java-gimplify.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 7ac2ba59554..b7cb8c4630c 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2004-05-14 Ranjit Mathew <rmathew@hotmail.com> + + * java-gimplify.c (java_gimplify_expr): Correct minor typos. + 2004-05-13 Diego Novillo <dnovillo@redhat.com> Merge from tree-ssa-20020619-branch. See diff --git a/gcc/java/java-gimplify.c b/gcc/java/java-gimplify.c index ae8acd54c12..f32a4c809b0 100644 --- a/gcc/java/java-gimplify.c +++ b/gcc/java/java-gimplify.c @@ -1,6 +1,6 @@ /* Java(TM) language-specific gimplification routines. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. This file is part of GCC. @@ -63,10 +63,10 @@ java_gimplify_expr (tree *expr_p, tree *pre_p ATTRIBUTE_UNUSED, char code_class = TREE_CODE_CLASS(TREE_CODE (*expr_p)); /* Java insists on strict left-to-right evaluation of expressions. - A problem may arise if a variable used in the lhs of a binary - operation is altered by an assignment to that value in the rhs + A problem may arise if a variable used in the LHS of a binary + operation is altered by an assignment to that value in the RHS before we've performed the operation. So, we always copy every - LHS to a temprorary variable. + LHS to a temporary variable. FIXME: Are there any other cases where we should do this? Parameter lists, maybe? Or perhaps that's unnecessary because |