+2001-01-19 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/sh/sh.c (prepare_move_operands) [PIC]: Use operands[0] as
+ temporary if no_new_pseudos.
+
2001-01-19 Neil Booth <neil@daikokuya.demon.co.uk>
* cppinternals.texi: Update.
&& GET_CODE (XEXP (operands[1], 0)) == PLUS
&& SYMBOLIC_CONST_P (XEXP (XEXP (operands[1], 0), 0)))
{
+ temp = no_new_pseudos ? operands[0] : gen_reg_rtx (Pmode);
temp = legitimize_pic_address (XEXP (XEXP (operands[1], 0), 0),
- SImode, gen_reg_rtx (Pmode));
+ SImode, temp);
operands[1] = expand_binop (SImode, add_optab, temp,
XEXP (XEXP (operands[1], 0), 1),
- gen_reg_rtx (Pmode), 0, OPTAB_LIB_WIDEN);
+ no_new_pseudos ? temp
+ : gen_reg_rtx (Pmode),
+ 0, OPTAB_LIB_WIDEN);
}
}