diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/optabs.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 092ae7cc8c1..4c375c0b8c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + + * optabs.c (expand_binop): In multi-word add cases, ensure + XTARGET is copied to TARGET if they are different. + 2003-04-15 Olivier Hainque <hainque@act-europe.fr> * except.c (resolve_fixup_regions): Avoid dereferencing null pointer diff --git a/gcc/optabs.c b/gcc/optabs.c index 59f714714e0..f57c81448dd 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); |