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] Disable tree-stdarg on a per-target basis


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


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