From owner-freebsd-current@FreeBSD.ORG Mon Nov 10 16:35:31 2008 Return-Path: Delivered-To: current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8618C1065678; Mon, 10 Nov 2008 16:35:31 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 437F58FC1F; Mon, 10 Nov 2008 16:35:30 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.3/8.14.2) with ESMTP id mAAGN5Bu004222; Mon, 10 Nov 2008 11:23:05 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.3/8.14.2/Submit) id mAAGN4pJ004221; Mon, 10 Nov 2008 11:23:04 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Mon, 10 Nov 2008 11:23:04 -0500 From: David Schultz To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20081110162304.GA4169@zim.MIT.EDU> Mail-Followup-To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , Roman Divacky , current@FreeBSD.ORG References: <20081106185512.GA33153@freebsd.org> <867i7b4qau.fsf@ds4.des.no> <863ahz4q4i.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <863ahz4q4i.fsf@ds4.des.no> Cc: Roman Divacky , current@FreeBSD.ORG Subject: Re: [RFC]: c99 compiled world X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 16:35:31 -0000 On Mon, Nov 10, 2008, Dag-Erling Smørgrav wrote: > Dag-Erling Smørgrav writes: > > Roman Divacky writes: > > > I tried to compile world in C99 (in fact gnu99) gcc mode. It compiles > > > correctly with two trivial exceptions [...] > > No, it won't. You must have made a mistake. C99 / GNU99 mode disables > > pretty much everything except the standard C library functions [...] > > (or at least, it should; if it doesn't, should be fixed) What you just said applies to -std=c99, not -std=gnu99. The latter includes all the extensions, so it should work. The default is -std=gnu89, which as far as I know is almost identical to -std=gnu99. Actually, the only difference I'm aware of is that in more recent gcc releases, GNU99 mode uses the C99 rules for inline functions. Whether world compiles with newer (GPL3) versions of gcc might be a worthwhile consideration in changing the default here.