optabs.c (expand_binop): Return xtarget if we haven't been able to move the result...
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 26 Jan 2003 09:11:31 +0000 (09:11 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 26 Jan 2003 09:11:31 +0000 (09:11 +0000)
* optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
been able to move the result to target.

From-SVN: r61829

gcc/ChangeLog
gcc/optabs.c

index fe1fe105fde60860c3b88cd4cd3a20990d22abed..4a29fd5fef5e43ac36a3b12d1a6d6497636734df 100644 (file)
@@ -1,10 +1,11 @@
 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
 
+       * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
+       been able to move the result to target.
+
        * expr.c (emit_group_store): Initialize dst with CONST0_RTX
        for the appropriate mode.
 
-2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
-
        * calls.c (emit_library_call_value_1): Handle return values
        in a PARALLEL.
 
index 38cc7e7fdffa0bf2ee0cdd05ebf667921eb26918..ea045f455e07fa3b9675c0fe1017b60f3cfe4d52 100644 (file)
@@ -1309,6 +1309,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
                                                   copy_rtx (xop0),
                                                   copy_rtx (xop1)));
            }
+         else
+           target = xtarget;
 
          return target;
        }