This is the mail archive of the gcc@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]

Re: alloca and HP


Quoting Jeffrey A Law (law@hurl.cygnus.com):
> 
>   In message <199901232112.PAA00195@modi.xraylith.wisc.edu>you write:
>   > I just checked 3 HP-UX 9.07 boxes, and not a single one has libPW.a, so 
>   > it's probably not a good idea to depend on its existence. Must be a 
>   > function of the installation, and not part of the base runtime.
> Quite possible.  If that's the case, then it's probably optional on hpux10.20
> too.
> 
> Not that this is all that important.  When using gcc, it knows how to deal with
> alloca directly without needing a library function.  When building gcc with the
> HP compilers an alloca will be built as part of libiberty and linked into the
> gcc executable (solely to avoid depending on host allocas which are either
> non-existent or broken).

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?

I personally don't like the 
#ifndef HPUX 
#include <alloca.h>
#endif

sequences at all.

Bye and thanks for your responses,
Martin.

-- 
Your mouse has moved. Windows must be restarted for the change
to take effect. Reboot now?


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