Call force_operand if X does not satisfy general_operand

From-SVN: r28399
This commit is contained in:
Nick Clifton 1999-08-02 08:40:22 +00:00 committed by Nick Clifton
parent 720988020d
commit 96843fa263
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Aug 2 09:38:10 1999 Nick Clifton <nickc@cygnus.com>
* explow.c (force_reg): Call force_operand if X does not
satisfy general_operand.
Mon Aug 2 01:34:22 1999 Jeffrey A Law (law@cygnus.com)
* fix-header.c (main): When testing for CONTINUED, use string

View File

@ -730,7 +730,12 @@ force_reg (mode, x)
if (GET_CODE (x) == REG)
return x;
temp = gen_reg_rtx (mode);
if (! general_operand (x, mode))
x = force_operand (x, NULL_RTX);
insn = emit_move_insn (temp, x);
/* Let optimizers know that TEMP's value never changes