This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Introduce target hook for FUNCTION_VALUE
On Wed, Jul 13, 2005 at 11:40:52AM +0200, Richard Guenther wrote:
> * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
> * calls.c (expand_call): Pass fntype to hard_function_value.
> (emit_library_call_value_1): Likewise.
> * explow.c: Include target.h.
> (hard_function_value): Take extra argument, the fntype.
> Use new target hook for function_value.
> * expr.h (hard_function_value): Change prototype.
> * function.c (aggregate_value_p): Pass 0 as fntype to
> hard_function_value.
> (assign_parms): Use new target hook for function_value.
> Pass 0 as fntype to hard_function_value.
> (expand_function_end): Likewise.
> * reg-stack.c: Include target.h.
> (stack_result): Use new target hook for function_value.
> * target-def.h: New target hook function_value.
> * target.h: Likewise.
> * targhooks.c (default_function_value): New function.
> * targhooks.h (default_function_value): Declare.
Ok.
r~