summaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-05 13:05:09 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-05 13:05:09 +0000
commitc1889fff10e1a0d852a9c8cfcfe76eabe775f18b (patch)
treeba4b8943e94418b70a144ced7105e0096e03f1ae /gcc/optabs.c
parent33f67bdd4573fb5af510111bcb74cb9ff165c353 (diff)
downloadgcc-c1889fff10e1a0d852a9c8cfcfe76eabe775f18b.tar.gz
(expand_binop): In last change, don't defererence TARGET if it is 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9877 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 08f4bebc40f..c0bf9598b1b 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.