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>

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

--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:strp=
time()
> >   uses alloca() and alloca is impossible to implement as a callable fun=
ction
> >   on amd64.  It has to be a compiler builtin.  Note that the bigger pro=
blem
> >   is that libc is not c99 clean internally.
>=20
> #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?=3Dc99 from bsd.sys.mk, it was never intended to
> be used that way.

Yes please.

Kris

--bp/iNruPH9dso1Pn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

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

--bp/iNruPH9dso1Pn--



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