diff options
author | Tom Tromey <tromey@redhat.com> | 2003-01-29 18:48:41 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-01-29 18:48:41 +0000 |
commit | c78f2b91f5e4893bdd84627e8c978d3a39a1392c (patch) | |
tree | dcaac2fa1a5c404c225b4c9d3cdd2410b9c4219a /gcc/java | |
parent | c4039eb00f3e9c46979dd4b027bd6f744f654a81 (diff) | |
download | gcc-c78f2b91f5e4893bdd84627e8c978d3a39a1392c.zip gcc-c78f2b91f5e4893bdd84627e8c978d3a39a1392c.tar.gz gcc-c78f2b91f5e4893bdd84627e8c978d3a39a1392c.tar.bz2 |
parse.y (patch_assignment): Only transform the rhs of an assignment when compiling to native.
* parse.y (patch_assignment): Only transform the rhs of an
assignment when compiling to native.
From-SVN: r62104
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 7866386..0ba1a75 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2003-01-29 Tom Tromey <tromey@redhat.com> + + * parse.y (patch_assignment): Only transform the rhs of an + assignment when compiling to native. + 2003-01-28 Tom Tromey <tromey@redhat.com> * jcf-write.c (generate_bytecode_conditional): Typo fixes. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 48d48a9..2096a8e 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -12640,7 +12640,7 @@ patch_assignment (tree node, tree wfl_op1) } /* Copy the rhs if it's a reference. */ - if (! flag_check_references && optimize > 0) + if (! flag_check_references && ! flag_emit_class_files && optimize > 0) { switch (TREE_CODE (new_rhs)) { |