cvs commit: src/include stdlib.h

Juli Mallett jmallett at FreeBSD.org
Wed Jun 25 11:26:54 PDT 2003


* "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;


More information about the cvs-all mailing list