Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Jan 2009 15:28:20 +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, Ollivier Robert <roberto@keltia.freenix.fr>
Subject:   Re: gcc 4.3: when will it become standard compiler?
Message-ID:  <49675F04.20006@gmx.de>
In-Reply-To: <20090109134725.GA38233@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>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Divacky schrieb:
> On Fri, Jan 09, 2009 at 02:32:01PM +0100, Christoph Mallon wrote:
>> Roman Divacky schrieb:
>>>> I'm not saying it's wrong to look for alternatives, but you cannot just 
>>>> change your system compiler like you change underwear.
>>> well... the first step is imho starting to compile world with C99...
>>> that might reveal some bugs, note that as of a few months ago
>>> 8-current compiles cleanly with C99, that does not mean that it's
>>> working when you run those programs correctly :)
>> One step in the right direction is embracing the nice features modern C 
>> offers you. For example declaring a variable right were you need it 
>> instead of dozens of lines away is one such nice thing which improves 
>> readability. Designated initializers improve readability, too.
>> But I'm not exactly sure what you mean by "compile world with C99". C99 
>> is pretty much backwards compatible to C89.
>  
> sorry for the bad wording - I meant to turn C99 compilation on default.
> We compile in gnu89 mode now.

I still have no idea what you mean. Sure, you can specify -std=c99 (or 
more likely gnu99), but an int is still an int - what do you expect? In 
fact default mode of GCC accepts many C99 constructs like // comments 
and mixed declarations and code, which are not valid C89.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49675F04.20006>