optabs.c (expand_binop): Don't reuse the shift target in the middle of shift sequences.
authorRichard Sandiford <rsandifo@redhat.com>
Thu, 24 Oct 2002 08:48:27 +0000 (08:48 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 24 Oct 2002 08:48:27 +0000 (08:48 +0000)
* optabs.c (expand_binop): Don't reuse the shift target in the
middle of shift sequences.

From-SVN: r58487

gcc/ChangeLog
gcc/optabs.c

index 1e6c104e4f33df22281337c8d8a69b722ae302ec..87dd52d80757573f6efc5e641856a84f796b63ff 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
+
+       * optabs.c (expand_binop): Don't reuse the shift target in the
+       middle of shift sequences.
+
 2002-10-23  Ziemowit Laski <zlaski@apple.com>
 
        * objc/objc-act.c (get_static_reference): Remove unneeded
index ec03c1908d8879e2ee4a96dd33c59bc2dff722de..dcb15b060e8982196986d832e53ab2ee2d96611a 100644 (file)
@@ -1151,7 +1151,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
                                     NULL_RTX, unsignedp, next_methods);
          into_temp2 = expand_binop (word_mode, reverse_unsigned_shift,
                                     into_input, second_shift_count,
-                                    into_target, unsignedp, next_methods);
+                                    NULL_RTX, unsignedp, next_methods);
 
          if (into_temp1 != 0 && into_temp2 != 0)
            inter = expand_binop (word_mode, ior_optab, into_temp1, into_temp2,
@@ -1167,7 +1167,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
                                      NULL_RTX, unsignedp, next_methods);
          outof_temp2 = expand_binop (word_mode, reverse_unsigned_shift,
                                      outof_input, second_shift_count,
-                                     outof_target, unsignedp, next_methods);
+                                     NULL_RTX, unsignedp, next_methods);
 
          if (inter != 0 && outof_temp1 != 0 && outof_temp2 != 0)
            inter = expand_binop (word_mode, ior_optab,