From owner-freebsd-current Mon Mar 16 23:50:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA25416 for freebsd-current-outgoing; Mon, 16 Mar 1998 23:50:33 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA25408 for ; Mon, 16 Mar 1998 23:50:31 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id AAA08738; Tue, 17 Mar 1998 00:50:30 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp02.primenet.com, id smtpd008719; Tue Mar 17 00:50:23 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id AAA16965; Tue, 17 Mar 1998 00:50:21 -0700 (MST) From: Terry Lambert Message-Id: <199803170750.AAA16965@usr04.primenet.com> Subject: Re: Compilers: 2.8.1 v 2.7.2.1? To: sgk@troutmask.apl.washington.edu (Steve Kargl) Date: Tue, 17 Mar 1998 07:50:21 +0000 (GMT) Cc: tlambert@primenet.com, ckempf@enigami.com, freebsd-current@FreeBSD.ORG In-Reply-To: <199803170456.UAA01121@troutmask.apl.washington.edu> from "Steve Kargl" at Mar 16, 98 08:56:10 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 > > Exceptions will not work with pthreads unless you are running 2.8.x > > g++ or better. This is as good a reason as any > > FWIW, I've been using egcs-1.0.x for testing g77. On my simple, > real-world benchmark (my code :-), g77 is giving about a 22% increase > in execution speed over f77 (f2c+gcc). egcs makes you make the choice about threading when you compile the compiler, instead of when you compile the code (as in gcc). I think egcs is seriously broken. It *certainly* will not work for C++ exceptions when using pthreads; if you want to compile the CMU ACAPD (for example), you will need the patches against the Moscow Center for SPARC Computing STL, and you *must* use g++ 2.8.0, *NOT* egcs. The problem is that the exception stack needs to be per-thread. The moral to this story? "I can make it run as fast as you want, as long as it doesn't have to actually work". 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