(convert_move): Make copy of operands for REG_EQUAL note to avoid sharing RTL if...
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 5 May 1993 18:37:24 +0000 (14:37 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 5 May 1993 18:37:24 +0000 (14:37 -0400)
(convert_move): Make copy of operands for REG_EQUAL note to avoid
sharing RTL if called later than RTL generation, though probably not
called after RTL generation.

From-SVN: r4339

gcc/expr.c

index 4b317cb446c591f3a330c3bcb5e1fccc9b398eff..546555c5e7fa518d084d4b3367de59a5960b9948 100644 (file)
@@ -862,7 +862,7 @@ convert_move (to, from, unsignedp)
       end_sequence ();
 
       emit_no_conflict_block (insns, to, from, NULL_RTX,
-                             gen_rtx (equiv_code, to_mode, from));
+                             gen_rtx (equiv_code, to_mode, copy_rtx (from)));
       return;
     }