From: H.J. Lu Date: Fri, 22 Jul 2011 05:23:22 +0000 (+0000) Subject: Call copy_to_mode_reg instead of force_reg. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fd72c6fb59fb512f5c040e5016bd1b4d407173b;p=gcc.git Call copy_to_mode_reg instead of force_reg. 2011-07-21 H.J. Lu * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg instead of force_reg. From-SVN: r176614 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 64560000d24..5ac6697d9fc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-07-21 H.J. Lu + + * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg + instead of force_reg. + 2011-07-21 H.J. Lu * config/i386/i386.c (ix86_expand_move): Convert to Pmode if diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7137217d37a..6517064299d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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);