OSDN Git Service

* parse.y (patch_assignment): Only transform the rhs of an
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2003 18:48:41 +0000 (18:48 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 29 Jan 2003 18:48:41 +0000 (18:48 +0000)
assignment when compiling to native.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62104 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/parse.y

index 7866386..0ba1a75 100644 (file)
@@ -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.
index 48d48a9..2096a8e 100644 (file)
@@ -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))
        {