On Wed, Jul 13, 2011 at 8:37 AM, Richard Henderson wrote: > On 07/13/2011 08:35 AM, H.J. Lu wrote: >> On Wed, Jul 13, 2011 at 8:27 AM, Richard Henderson wrote: >>> On 07/13/2011 07:02 AM, H.J. Lu wrote: >>>> Hi Richard, >>>> >>>> Is my patch OK? >>> >>> No, I don't think it is. >>> >> >> What is your suggestion? > > Promote the return value.  If that means it doesn't match function_value, > then I suggest that function_value is wrong. > > > r~ > This is the patch I am testing. I will check it in if it works. Thanks. -- H.J. --- 2011-07-21 H.J. Lu * config/i386/i386.c (function_value_64): Always return pointers in Pmode. (ix86_promote_function_mode): New. (TARGET_PROMOTE_FUNCTION_MODE): Likewise.