From owner-freebsd-hackers Mon Feb 22 1:12:22 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from zippy.dyn.ml.org (pm3-22.ppp.wenet.net [206.15.85.22]) by hub.freebsd.org (Postfix) with ESMTP id E00DB10FF2 for ; Mon, 22 Feb 1999 01:11:57 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost [127.0.0.1]) by zippy.dyn.ml.org (8.9.2/8.9.1) with ESMTP id BAA01303; Mon, 22 Feb 1999 01:10:27 -0800 (PST) (envelope-from garbanzo@hooked.net) Date: Mon, 22 Feb 1999 01:10:27 -0800 (PST) From: Alex Zepeda To: Amancio Hasty Cc: hackers@FreeBSD.ORG Subject: Re: gcc 2.8.1 Exceptions? In-Reply-To: <199902220828.AAA17995@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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