Re: cvs commit: src/include stdlib.h

From: Juli Mallett <jmallett_at_FreeBSD.org>
Date: Wed, 25 Jun 2003 13:26:53 -0500
* "David E. O'Brien" <obrien_at_FreeBSD.org> [ Date: 2003-06-25 ]
	[ w.r.t. cvs commit: src/include stdlib.h ]
> obrien      2003/06/25 11:11:32 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     include              stdlib.h 
>   Log:
>   Don't blindly provide alloca() for all compilers -- it is too implementation
>   dependent.  Instead provide one for GCC & Intel's GCC copy and one for lint.
>   Anyone using any other translator tool needs to look closely at how that tool
>   can handle alloca.

Please make the lint case the default case.  The error is silly.  If
this is how we're going to be, I'm going to go back to IRIX 6.2.  At
least there, when I munged the headers once, they didn't keep making
me re-munge them.  A compiler which needs a builtin one should inline
it.  GCC does unless you request strict-strict-strict conformance.
Personally, I have a C-based alloca(3) that I use, it's slow, but I do
not care.  I also use a variety of odd C translators, and don't really
appreciate this at all.

And don't tell me to add definitions for those compilers along with
lint.  This isn't error worthy, especially not in stdlib.h.  Maybe in
alloca.h.  This breaks compiling even things which don't need alloca.
Adding more definitions for the default case is akin to "ported" vs.
"portable".

Thanx,
juli.
-- 
juli mallett. email: jmallett_at_freebsd.org; efnet: juli;
Received on Wed Jun 25 2003 - 11:26:53 UTC