This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]