From owner-cvs-all Wed Aug 8 2:59:41 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 00E6437B417; Wed, 8 Aug 2001 02:59:14 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id LAA10542; Wed, 8 Aug 2001 11:56:41 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Garrett Wollman Cc: Sheldon Hearn , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/bin/sh mail.c References: <20010801140817.B64653E31@bazooka.unixfreak.org> <42763.996675456@axl.seasidesoftware.co.za> <200108011519.f71FJN832889@khavrinen.lcs.mit.edu> From: Dag-Erling Smorgrav Date: 08 Aug 2001 11:56:40 +0200 In-Reply-To: <200108011519.f71FJN832889@khavrinen.lcs.mit.edu> Message-ID: Lines: 17 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Garrett Wollman writes: > < 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