This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Output names safely in assembly
> From: Richard Henderson <rth@redhat.com>
>
> On Sat, May 25, 2002 at 04:43:51PM +0200, Gabriel Dos Reis wrote:
> > Yes. Actually, we would want use alloca() but we changed our mind since
> > it wouldn't necessarily be available at stage1.
>
> It is. Look at the include/libiberty.h.
> r~
More specifically, look at ASTRDUP which does exactly what you want
even in stage1. But I thought we were trying to avoid adding alloca
and instead prefer xmalloc/free anyway.
--Kaveh
--
Kaveh R. Ghazi Director of Systems Architecture
ghazi@caip.rutgers.edu Qwest Solutions