This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: alloca and HP
- To: martin dot kahlert at mchp dot siemens dot de
- Subject: Re: alloca and HP
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Mon, 25 Jan 1999 04:55:00 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <19990125085440.A29660@keksy.mchp.siemens.de>you write:
> My originary problem was not the existence/non-existence of alloca
> inside a HPUX liberary since that wouldn't be called anyway by gcc
> because it's a built in, but the missing header file alloca.h.
> So should gcc provide its own version on HPs?
No. That's not gcc's job.
> I personally don't like the
> #ifndef HPUX
> #include <alloca.h>
> #endif
>
> sequences at all.
Ugh. I don't like it either. I recommend creating autoconf tests then
using something like
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
I used to feel autoconf wasn't all that useful, but after working with it
for the last 4 years I've come to really appreciate it.
jeff