This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Alloca problem in libiberty/regex.c
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 25 Nov 2001 17:55:57 -0500 (EST)
- Subject: Alloca problem in libiberty/regex.c
[Get raw message]
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)