Subject: Re: alloca and libc
To: James Chacon <jchacon@genuity.net>
From: Anders Magnusson <ragge@ludd.luth.se>
List: tech-toolchain
Date: 03/11/2002 16:19:27
> Whats the consensus on alloca and it's presence in libc? Gcc will internally
> deal with calls to this normally and it's only in libc for some archs:
> 
> ./i386/gen/alloca.S
> ./m68k/gen/alloca.S
> ./ns32k/gen/alloca.S
> ./vax/gen/alloca.S
> ./arm/gen/alloca.S
> ./x86_64/gen/alloca.S
> 
> This means on say powerpc machines libc doesn't have alloca which makes some
> package ports "interesting" when configure/etc go looking for alloca.
> 
> Is there any reason to leave these?
> 
Yes for sure. You may end up compiling with another compiler than gcc,
especially userspace, or you may not want to use the builtins, or so.
I would rather say that powerpc should have an alloca written.

-- Ragge