Call copy_to_mode_reg instead of force_reg.

2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
	instead of force_reg.

From-SVN: r176614
This commit is contained in:
H.J. Lu 2011-07-22 05:23:22 +00:00 committed by H.J. Lu
parent 69a6209457
commit 7fd72c6fb5
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
instead of force_reg.
2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_expand_move): Convert to Pmode if

View File

@ -21515,7 +21515,7 @@ ix86_expand_call (rtx retval, rtx fnaddr, rtx callarg1,
fnaddr = XEXP (fnaddr, 0);
if (GET_MODE (fnaddr) != Pmode)
fnaddr = convert_to_mode (Pmode, fnaddr, 1);
fnaddr = gen_rtx_MEM (QImode, force_reg (Pmode, fnaddr));
fnaddr = gen_rtx_MEM (QImode, copy_to_mode_reg (Pmode, fnaddr));
}
call = gen_rtx_CALL (VOIDmode, fnaddr, callarg1);