This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada bootstrap failure due to loop optimization and builtin_stack_alloc
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Richard Henderson <rth at redhat dot com>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc at gcc dot gnu dot org
- Date: Fri, 30 Jul 2004 13:52:49 +0200
- Subject: Re: Ada bootstrap failure due to loop optimization and builtin_stack_alloc
- References: <10407291222.AA09052@vlsi1.ultra.nyu.edu> <20040729184447.GA15762@redhat.com>
Hello,
> On Thu, Jul 29, 2004 at 08:22:30AM -0400, Richard Kenner wrote:
> > this sounds weird.
> >
> > It's a wierd builtin!
>
> I've actually been thinking that the builtin is so weird that
> we shouldn't do things this way at all.
>
> We jump through a hoop with __builtin_stack_alloc, and then we
> jump through a hoop with DECL_DEFER_OUTPUT in allocating the
> variable at rtl time. Why in the world aren't we just
> representing this as __builtin_alloca and normal indirection?
because rewriting every use of the variable sized array via indirection
makes debugging impossible, basically. But yes, as noted further in the
thread, this seems like a best solution regardless.
Zdenek