Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 19:32:28 +0100
From:      Christoph Mallon <christoph.mallon@gmx.de>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        Andrew Reilly <andrew-freebsd@areilly.bpc-users.org>, freebsd-current@freebsd.org, Alexander Churanov <alexanderchuranov@gmail.com>, Ollivier Robert <roberto@keltia.freenix.fr>
Subject:   Re: gcc 4.3: when will it become standard compiler?
Message-ID:  <4968E9BC.2070407@gmx.de>
In-Reply-To: <20090109222211.GA33145@freebsd.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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. (;



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