From owner-freebsd-current@FreeBSD.ORG Sat Jan 10 18:32:33 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D1F1065674 for ; Sat, 10 Jan 2009 18:32:33 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 8849A8FC3A for ; Sat, 10 Jan 2009 18:32:31 +0000 (UTC) (envelope-from christoph.mallon@gmx.de) Received: (qmail invoked by alias); 10 Jan 2009 18:32:29 -0000 Received: from p54A3D14A.dip.t-dialin.net (EHLO tron.homeunix.org) [84.163.209.74] by mail.gmx.net (mp008) with SMTP; 10 Jan 2009 19:32:29 +0100 X-Authenticated: #1673122 X-Provags-ID: V01U2FsdGVkX18hZxBhgDYhO9/KKobKv8AerM5mQ3wC4o8TEFDNSC ou9jk93dJvEBVu Message-ID: <4968E9BC.2070407@gmx.de> Date: Sat, 10 Jan 2009 19:32:28 +0100 From: Christoph Mallon User-Agent: Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Roman Divacky References: <49668763.8020705@mail.zedat.fu-berlin.de> <20090108233311.GA69883@keltia.freenix.fr> <20090109031147.GB44317@duncan.reilly.home> <49672189.5060109@gmx.de> <20090109110508.GA12123@freebsd.org> <496751D1.20605@gmx.de> <20090109134725.GA38233@freebsd.org> <49675F04.20006@gmx.de> <3cb459ed0901091412o5861ec59web9b48d264ca053b@mail.gmail.com> <20090109222211.GA33145@freebsd.org> In-Reply-To: <20090109222211.GA33145@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.6 Cc: Andrew Reilly , freebsd-current@freebsd.org, Alexander Churanov , Ollivier Robert Subject: Re: gcc 4.3: when will it become standard compiler? 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: Sat, 10 Jan 2009 18:32:33 -0000 Roman Divacky schrieb: > On Sat, Jan 10, 2009 at 01:12:57AM +0300, Alexander Churanov wrote: >> Folks, >> >> The '-std=c99'' only instructs GCC to allow the whole of C99. This is >> clearly not enough, because this mode allows too many GCC extensions. If you >> compile your code in "default' mode or just specify '-std=c99', then it's >> very likely that you will eventually get stuck to GCC. Using this approach >> you are reducing chances to switch to another C99 compiler. >> >> Though I am not aware of any other open source compiler supporting C99, I >> beleive that there is great need for it. This discussion indicates that >> there is real necessity for BSD-licensed C99 compiler. > > clang (clang.llvm.org) supports almost everything now and aims for full C99 > support. > > pcc aims for full C99 too I believe > > Chris Mallon can comment better but I believe cparser is C99 too cparser already supports most C99 constructs (only complex arithmetic is missing, mostly because nobody needed it so far). The other fancy stuff, like designator initializers and compound literals, works. Wide characters are supported, too. It's not a C99 feature per se, but C99 allows concatenation of char and wide char string literals. Also cparser can generate warnings about incorrect wide character format strings (GCC cannot do that). Oh, btw, I'm Christoph. Chris (Lattner) is the LLVM guy. (;