From owner-freebsd-current Wed Sep 9 16:12:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA07720 for freebsd-current-outgoing; Wed, 9 Sep 1998 16:12:42 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA07713 for ; Wed, 9 Sep 1998 16:12:41 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id QAA29452; Wed, 9 Sep 1998 16:12:32 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp04.primenet.com, id smtpd029381; Wed Sep 9 16:12:22 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id QAA06966; Wed, 9 Sep 1998 16:12:12 -0700 (MST) From: Terry Lambert Message-Id: <199809092312.QAA06966@usr02.primenet.com> Subject: Re: Compiler problems with gcc-2.7.2.1 To: obrien@NUXI.com Date: Wed, 9 Sep 1998 23:12:12 +0000 (GMT) Cc: dfr@nlsystems.com, jb@cimlogic.com.au, current@FreeBSD.ORG In-Reply-To: <19980909145530.B2403@nuxi.com> from "David O'Brien" at Sep 9, 98 02:55:30 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > It would be a good idea to upgrade to a modern compiler after the release. > > I suspect that gcc-2.8.x will be more acceptable for most people. > > Why? > > If you listen to the EGCS people, while g++28 is a much better C++ > compiler than g++27, it still has bugs that are fixed in EGCS. > > From coding this weekend, I do know that EGCS 1.1.1 (aka 1.1a) works > better all around with the STL. ACAP uses STL, exceptions, and threads, extensively, and works fine under g++ 2.8.1; not so, under EGCS's g++. A number of people have reported many compilation problems with EGCS, though admittedly some of those reports predate 1.1.1 (up to you to convince these people to retry). I personally dislike EGCS because it requires that you build the compiler's libgcc.a so that it *either* _requires_ libc_r, *or* it *cannot* use libc_r. In other words, you get to eat threads overhead on all programs, or you don't get to use threads at all. A nice, binary switch that has to be flipped in one direction or the other. I talked about it this weekend with Mike Stump, the former maintainer (he's left Cygnus for Wind River Systems; seems there's more money in non-GPL'ed software...). I'm sending Jeremy Allison's patches to FSF libgcc.a into Cygnus, labelled as such, but I don't hold out much hope, since the major GPL'ed OS has kernel threads by default (the implementation model used is a mistake, but I've railed on that before...). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message