This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: apply_result_size vs FUNCTION_VALUE_REGNO_P


On Thu, 2005-04-07 at 14:49, Eric Botcazou wrote:
> Hi Eric,
> 
> The __builtin_apply/__builtin_return mechanism is broken on SPARC in 4.x 
> because of
> 
> 2004-03-17  Eric Christopher  <echristo@redhat.com>
> 
> 	* builtins.c (apply_args_size): Use reg_raw_mode.
> 	(apply_result_size): Ditto.
> 
> http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01422.html
> 
> 
> I think the change breaks  __builtin_apply/__builtin_return on every platform 
> that can return values in several contiguous registers, because the entry for 
> FUNCTION_VALUE_REGNO_P in the manual reads:

That was my thoughts too.  You could take a look at how I fixed it on
ARM.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]