From owner-freebsd-questions Thu Nov 25 8:25: 9 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.pit.adelphia.net (alpha.pit.adelphia.net [24.48.44.2]) by hub.freebsd.org (Postfix) with ESMTP id CE53714C15 for ; Thu, 25 Nov 1999 08:25:00 -0800 (PST) (envelope-from evstiounin@adelphia.net) Received: from evstiouninadelphia ([24.48.53.238]) by alpha.pit.adelphia.net (8.9.2/8.9.2) with SMTP id LAA28136; Thu, 25 Nov 1999 11:25:34 -0500 (EST) Message-ID: <012901bf3761$15227b80$ee353018@evstiouninadelphia.net.pit.adelphia.net> From: "Mikhail Evstiounin" To: "Oren Sarig" , "Marc Wandschneider" , Subject: Re: latest gcc? Date: Thu, 25 Nov 1999 11:21:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----Original Message----- From: Oren Sarig To: Marc Wandschneider ; 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