diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 13:06:58 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-15 13:06:58 +0000 |
commit | 629d2471ffe54279385295925dcecc6f2e04c54e (patch) | |
tree | c4d899366fa1c01553a24de869cc410ef00881bd /gcc | |
parent | d99effe31c29400ce16c6c8e5b8944dc75809620 (diff) | |
download | gcc-629d2471ffe54279385295925dcecc6f2e04c54e.tar.gz |
* optabs.c (expand_binop): In multi-word add cases, ensure
XTARGET is copied to TARGET if they are different.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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); |