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
This commit is contained in:
Richard Kenner 2003-04-15 13:06:58 +00:00 committed by Richard Kenner
parent 29921faf49
commit d0ccc658cb
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);