OSDN Git Service

(expand_binop): In last change, don't defererence TARGET if it is 0.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 13:05:09 +0000 (13:05 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 1995 13:05:09 +0000 (13:05 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9877 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/optabs.c

index 08f4beb..c0bf959 100644 (file)
@@ -1047,7 +1047,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
 
       /* If the target is the same as one of the inputs, don't use it.  This
         prevents problems with the REG_EQUAL note.  */
-      if (target == op0 || target == op1 || GET_CODE (target) != REG)
+      if (target == op0 || target == op1
+         || (target != 0 && GET_CODE (target) != REG))
        target = 0;
 
       /* Multiply the two lower words to get a double-word product.