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
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Giovanni Bajo <rasky at develer dot com>
- Cc: Eric Botcazou <ebotcazou at libertysurf dot fr>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 26 May 2005 12:39:59 -0400
- Subject: Re: [PATCH] Disable tree-stdarg on a per-target basis
- References: <200505261203.49485.ebotcazou@libertysurf.fr> <02af01c5620f$7bb44390$bf03030a@trilan>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, May 26, 2005 at 06:25:08PM +0200, Giovanni Bajo wrote:
> Eric Botcazou <ebotcazou@libertysurf.fr> wrote:
>
> > This patch adds a new target flag, TARGET_STDARG_OPTIMIZE_DISABLE, to make
> it
> > possible to disable the tree-level stdarg optimization pass, and defines
> it to
> > true on SPARC (I think the RTL CSE + DCE passes already eliminate as much
> > stdarg overhead as tree-stdarg would there).
>
> Do we want to keep on relying on the RTL optimizers for this? Moving this
> optimization up to the tree level is on par with the current trend, even if
> there is no immediate benefit in code generation.
Yes, we surely want to expand __builtin_va_{start,end,copy}, I guess right
after the pass_stdarg finishes. But it means rewriting all the ports
va_start handling.
Jakub