From: Richard Kenner Date: Tue, 15 Apr 2003 13:06:58 +0000 (+0000) Subject: optabs.c (expand_binop): In multi-word add cases, ensure XTARGET is copied to TARGET... X-Git-Tag: releases/gcc-3.4.0~7277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0ccc658cb93a6a31a4324302ff6175244dab968;p=thirdparty%2Fgcc.git optabs.c (expand_binop): In multi-word add cases, ensure XTARGET is copied to TARGET if they are different. * optabs.c (expand_binop): In multi-word add cases, ensure XTARGET is copied to TARGET if they are different. From-SVN: r65632 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 092ae7cc8c1a..4c375c0b8c6e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-15 Richard Kenner + + * optabs.c (expand_binop): In multi-word add cases, ensure + XTARGET is copied to TARGET if they are different. + 2003-04-15 Olivier Hainque * except.c (resolve_fixup_regions): Avoid dereferencing null pointer diff --git a/gcc/optabs.c b/gcc/optabs.c index 59f714714e01..f57c81448dd3 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -1299,7 +1299,8 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods) if (i == GET_MODE_BITSIZE (mode) / (unsigned) BITS_PER_WORD) { - if (mov_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing) + if (mov_optab->handlers[(int) mode].insn_code != CODE_FOR_nothing + || ! rtx_equal_p (target, xtarget)) { rtx temp = emit_move_insn (target, xtarget);