Date: 08 Aug 2001 11:56:40 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: Sheldon Hearn <sheldonh@starjuice.net>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sh mail.c Message-ID: <xzpsnf26fjb.fsf@flood.ping.uio.no> In-Reply-To: <200108011519.f71FJN832889@khavrinen.lcs.mit.edu> References: <20010801140817.B64653E31@bazooka.unixfreak.org> <42763.996675456@axl.seasidesoftware.co.za> <200108011519.f71FJN832889@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman <wollman@khavrinen.lcs.mit.edu> writes: > <<On Wed, 01 Aug 2001 16:17:36 +0200, Sheldon Hearn <sheldonh@starjuice.net> said: > > Is there a good reason for us to omit -fno-builtin from the compiler > > flags turned on in the WARNS case? > Yes -- we actually *want* those built-ins when these programs are > built for normal use. The problem is that gcc's handling of builtins is broken, and -fno-builtin is required to avoid namespace pollution. There's a way around this: use -fno-builtin and replace the prototypes for functions for which gcc has a builtin with a suitable macro (#ifdef __GNUC__, of course) so the builtins will used *if and only if* the corresponding headers are included. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpsnf26fjb.fsf>