aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-06-05 09:05:09 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-06-05 09:05:09 -0400
commitf96d689c3e30e60a3a48433546211a412e89a35a (patch)
treeba4b8943e94418b70a144ced7105e0096e03f1ae
parent9d2a6a8e21eccf286a717f144c28b1bc821d2929 (diff)
downloadgcc-f96d689c3e30e60a3a48433546211a412e89a35a.zip
gcc-f96d689c3e30e60a3a48433546211a412e89a35a.tar.gz
gcc-f96d689c3e30e60a3a48433546211a412e89a35a.tar.bz2
(expand_binop): In last change, don't defererence TARGET if it is 0.
From-SVN: r9877
-rw-r--r--gcc/optabs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 08f4beb..c0bf959 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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.