From owner-freebsd-hackers Mon Feb 22 1:19:27 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rah.star-gate.com (rah.star-gate.com [209.249.129.138]) by hub.freebsd.org (Postfix) with ESMTP id 5EE9C11526 for ; Mon, 22 Feb 1999 01:19:23 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.9.1/8.8.8) with ESMTP id BAA35954; Mon, 22 Feb 1999 01:18:18 -0800 (PST) (envelope-from hasty@rah.star-gate.com) Message-Id: <199902220918.BAA35954@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Alex Zepeda Cc: hackers@FreeBSD.ORG Subject: Re: gcc 2.8.1 Exceptions? In-reply-to: Your message of "Mon, 22 Feb 1999 01:10:27 PST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 22 Feb 1999 01:18:18 -0800 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tnks I know that egcs is better than gcc-2.8 is just that egcs semantics for template handling got fixed or changed and it fails to compile "EF". EF uses default arguments in template functions which gcc alows however egcs does not . Will look into later to switch to egcs ... gcc-2.8.1 exception handling with elf objects works on 3.0 system s per my posting. Best Regards, Amancio > On Mon, 22 Feb 1999, Amancio Hasty wrote: > > > Not sure if exception handling on gcc-2.7.3 is buggy or what however per the > > simple > > minded program which I posted exception handling on gcc-2.7.3 appears to work. > > AFAIK it's non-existant without some patches or somesuch. > > > Now to get exception handling with gcc-2.8.1 from the porst dristribution > > working on FreeBSD > > defined in defaults.h: > > > > #define DWARF2_UNWIND_INFO 0 > > ^^^ which was 1 before. > > > > If I am not mistaken the above sets the exception handling to something like > > -fsjlj-exceptions. > > Well this may have fixed it for a.out, but didn't work for me with ELF > binaries. The best solution is to use egcs and its startup objects so you > can get threadsafe exceptions and not have to deal with stupid defines. > There's a patch to do this in the egcs port (patch-ak). Plus from what > I've heard egcs 1.1.1 is a more reliable C++ compiler (hey it works with > KOffice and *shudder* mico). > > > Currently working on porting Netscape's Electric Fire to FreeBSD. "EF" > > is a very cool java vm which translates java classes straight to > > machine instructions 8) > > Cool. > > - alex > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message