cvs commit: src/share/mk bsd.sys.mk

Kris Kennaway kris at obsecurity.org
Fri Jun 13 16:31:04 PDT 2003


On Sat, Jun 14, 2003 at 12:39:33AM +0200, Dag-Erling Smorgrav wrote:
> Peter Wemm <peter at FreeBSD.org> writes:
> >   Log:
> >   We cannot use c99 on amd64 either due to lack of alloca().  libc:strptime()
> >   uses alloca() and alloca is impossible to implement as a callable function
> >   on amd64.  It has to be a compiler builtin.  Note that the bigger problem
> >   is that libc is not c99 clean internally.
> 
> #define alloca(sz) __builtin_alloca(sz)

That's kind of a nasty hack, since it's gcc-specific and partly undoes
the effect of c99 mode.  One of the differences between gnu99 and c99
is that the latter does not use the gcc builtin functions.  If you
actually want to use the builtins, you shouldn't be asking for c99
mode to begin with.

> and please remove CSTD?=c99 from bsd.sys.mk, it was never intended to
> be used that way.

Yes please.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030613/730d19ba/attachment.bin


More information about the cvs-src mailing list