Alloca problem in libiberty/regex.c
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Nov 15 17:58:00 GMT 2001
> > It seems that regex.c needs to include libiberty.h so that alloca gets
> > properly defined to be "C_alloca", or possibly configure machinary needs
> > to be added to check for alloca.h.
>
> Checking for alloca.h is easy enough. I'm committing this to gcc, and
> will merge it to gdb shortly.
>
> 2001-11-26 DJ Delorie <dj@redhat.com>
>
> * configure.in: Check for alloca.h (for regex.c and putenv.c).
> * configure: Regenerate.
> * config.h: Add HAVE_ALLOCA_H.
I personally thought including libiberty.h was a better solution as this
makes uses of C_alloca in alloca.c when necessary. Checking for alloca.h
doesn't provide a solution to the problem on systems that don't have alloca.
I think Zack removed the HAVE_ALLOCA_H check not too long ago when he
revamped the handling of alloca.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-patches
mailing list