This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Disable tree-stdarg on a per-target basis
> I don't think extra hook is needed.
The other solution would be to add a switch and forces it to 0 on SPARC.
> Now, for the char */void * type va_list, perhaps the backend could signal
> that it is going to make use of the optimization by setting
> targetm.stdarg_optimize_hook to something, even if that is just
> a dummy routine that returns false; unconditionally.
The purpose of stdarg_optimize_hook is already not crystal-clear, but it would
be even less clear with that kind of overloading. ;-)
--
Eric Botcazou