From d0ccc658cb93a6a31a4324302ff6175244dab968 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 15 Apr 2003 13:06:58 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/optabs.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 092ae7c..4c375c0 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 59f7147..f57c814 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); -- 2.7.4