Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Jan 2000 09:37:49 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: gcc vs egcs
Message-ID:  <200001041437.JAA34430@server.baldwin.cx>
In-Reply-To: <Pine.BSF.4.21.9912281703180.73183-100000@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 28-Dec-99 Jonathon McKitrick wrote:
> 
> Correct me if i'm wrong, but is BSD moving to egcs in 4.0?  How will this
> change the generated code?  Is it just more C++ compatible?

On a -current box:

> cc -v
Using builtin specs.
gcc version 2.95.2 19991024 (release)

Thus, -current is using egcs for its C compiler.  gcc 2.95.2 is an ANSI C++
compiler, which does result in some changes from the behavior of even egcs 1.x.
For example, some older versions contain tests for the 'inline' and 'const'
keywords that work with gcc 2.[78].x and egcs 1.x but are actually invalid
according to the relatively new ANSI C++ standard and thus fail on gcc 2.95.2. 
If you are really interested in learning more about the C compiler, e-mail
obrien@FreeBSD.org, as he is Mr. C Compiler.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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




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