unbreaking alloca
    Alexander Leidinger 
    Alexander at Leidinger.net
       
    Sat Jun 14 09:36:25 PDT 2003
    
    
  
On Sat, 14 Jun 2003 17:27:04 +0200
Dag-Erling Smorgrav <des at ofug.org> wrote:
> I'd like to commit the attached patch (after suitable testing of
> course).  It removes all mention of alloca(3) from cdefs.h, and
> instead modifies the declaration in stdlib.h so that GNU compilers see
> alloca(sz) defined to __builtin_alloca(sz) while other compilers (and
> linters) see a regular prototype.
Please also add a comment about the actual pitfalls (alloca function not
possible to implement on AMD64, ... in libc and broken on IA32).
> I would also like to add (at some future date) a link-time warning for
> alloca(3) similar to what we already have for gets(), mktemp() etc.
Wasn't there consensus to remove it entirely from libc?
Bye,
Alexander.
-- 
            Give a man a fish and you feed him for a day;
     teach him to use the Net and he won't bother you for weeks.
http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
    
    
More information about the freebsd-arch
mailing list