diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-27 23:38:22 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-01-27 23:38:22 +0000 |
commit | 5913203b1254cfb654badf0ae34ee0f7e872a431 (patch) | |
tree | d6348f2a6542f55d3f7246cc3ac193e1fab7b64d /gcc/optabs.c | |
parent | 5ebf1393cff3e6096ebddd05da3a7f8369159637 (diff) | |
download | gcc-5913203b1254cfb654badf0ae34ee0f7e872a431.tar.gz |
(expand_binop): Add missing test for VOIDmode before calling
convert_to_mode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 97983a864b1..a0d6645e595 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1512,7 +1512,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) op1x = convert_to_mode (word_mode, op1, 1); } - if (GET_MODE (op0) != mode) + if (GET_MODE (op0) != VOIDmode + && GET_MODE (op0) != mode) op0 = convert_to_mode (mode, op0, unsignedp); /* Pass 1 for NO_QUEUE so we don't lose any increments |