Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2000 07:47:26 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Bruno BEC <bbec@capgemini.fr>
Cc:        freebsd-platforms@FreeBSD.ORG
Subject:   Re: compile FreeBSD with ANSI compiler
Message-ID:  <Pine.BSF.4.21.0008190727580.5029-100000@besplex.bde.org>
In-Reply-To: <399D02FC.BEAC8D98@capgemini.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Aug 2000, Bruno BEC wrote:

> Hi all,
> 
> In order to have better performances on a new platform we intend to
> compile FreeBSD with a specific ANSI-C compliant compiler instead of
> gcc.
> We made the same experience with the Linux Kernel and had bad surprises
> due to significant non ANSI code souce (this code is not rejected by gcc
> 
> which is not fully ANSI-C).
> 
> Did one of you have any experience or information about the ANSI
> compliance of the FreeBSD kernel ?

It is similar to Linux -- very non-conformant.

Last November, compiling LINT with 'gcc -pedantic -ansi ...' gave
14064 lines of warnings after removal of 50000 (?) lines of duplicated
warnings for machine-generated code in <sys/sysproto.h>.  That's with
gcc'isms like __inline and __attribute__((__packed__) (ick) accepted
without warnings.

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-platforms" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008190727580.5029-100000>