Alloca problem in libiberty/regex.c
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Nov 15 13:26:00 GMT 2001
I get an undefined reference to alloca in libiberty/regex.o when libiberty
is built with HP's cc in the todays cvs version of gdb. The problem is
also present in the gcc sources.
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. This would enable the builtin in the
HP compiler. There is no alloca in libc.
The same problem is also present in putenv.c, although this doesn't get
built under hppa1.1-hp-hpux10.20.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list