Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 16:31:02 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Peter Wemm <peter@FreeBSD.org>
Subject:   Re: cvs commit: src/share/mk bsd.sys.mk
Message-ID:  <20030613233102.GA81695@rot13.obsecurity.org>
In-Reply-To: <xzp65n9a9ga.fsf@flood.ping.uio.no>
References:  <200306132154.h5DLsL4t018474@repoman.freebsd.org> <xzp65n9a9ga.fsf@flood.ping.uio.no>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Jun 14, 2003 at 12:39:33AM +0200, Dag-Erling Smorgrav wrote:
> Peter Wemm <peter@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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+6l61Wry0BWjoQKURAlCAAKCKDQujen7C50qflwI5mNW4w+vr5gCdHzvT
VEF5lMAqmfC16JM+20zUTpY=
=Y0kl
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030613233102.GA81695>