Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 1999 11:21:07 -0500
From:      "Mikhail Evstiounin" <evstiounin@adelphia.net>
To:        "Oren Sarig" <sarig@bezeqint.net>, "Marc Wandschneider" <MarcW@Lanfear.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: latest gcc?
Message-ID:  <012901bf3761$15227b80$ee353018@evstiouninadelphia.net.pit.adelphia.net>

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

-----Original Message-----
From: Oren Sarig <sarig@bezeqint.net>
To: Marc Wandschneider <MarcW@Lanfear.com>; freebsd-questions@FreeBSD.ORG
<freebsd-questions@FreeBSD.ORG>
Date: Thursday, November 25, 1999 10:04 AM
Subject: Re: latest gcc?


>> gcc appears to be up to version 2.95 or so.
>>


More exactly egcs 2.95.2. Take a look at http://egcs.cygnus.com

>> Question:  Is there a way to update the 2.7.2 that comes with
>> 3.3 release to this version?  or, do I have to download and build
>the
>> latest, put it in /usr/local/bin as gcc, and unlink /usr/bin/gcc so
>that
>> cc still works with 2.7 ...
>>
>> any recommendations?
>
>Yep, though it's probably not what you want: don't upgrade. When the
>release was made, a whole lot newer version of gcc was available, and
>wasn't included for a reason: gcc 2.7.1.2 (or whatever it is) is the
>best cross between beinng latest and being good - gcc 2.8 introduced
>bugs that render it unusable for lots of tasks. 2.9 is no different.
>If you want a more modern compiler, use egcs, probably from ports.
>

I am not sure if it's a gcc error. If you take a look at egcs FAQ then
you'll find that egcs was derived from gcc 2.8.2 and starting from 2.95
it uses more aggresive optimization strategy. Linux kernel asm code violates
some aliasing rules (according to egcs) which are in standard. I believe,
this is a case for FreeBSD too. You can't use this compiler to compile
kernel, but it's more robust, faster and supports exceptions, has a better
optimization, supports namespaces, etc.

>Cheers,
>
>Oren Sarig
>sarig@bezeqint.net
>
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message



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?012901bf3761$15227b80$ee353018>