This is the mail archive of the gcc-patches@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: [PATCH] Optimize stdarg functions with void * or char * va_list


> The following patch implements that.
> This patch contains just the infrastructure, not the backend changes
> to avoid saving unneeded registers.

Nice!  Do you plan on implementing the optimization in the SPARC back-end or 
should I take a look?

> Backends that use void * or char * va_list type shouldn't set
> va_list_gpr_counter_field or va_list_fpr_counter_field, all they
> need is just to look at cfun->va_list_gpr_size this pass computes
> (va_list_fpr_size is not used on those arches, as void */char *
> va_list is just one counter, not two).

I presume you meant va_list_gpr_counter_name and va_list_fpr_counter_name?

-- 
Eric Botcazou


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