From owner-freebsd-current Fri Jan 14 20:27:50 2000 Delivered-To: freebsd-current@freebsd.org Received: from mx3.mail.ru (mx3.mail.ru [194.67.23.37]) by hub.freebsd.org (Postfix) with ESMTP id 3F62314CE0; Fri, 14 Jan 2000 20:27:45 -0800 (PST) (envelope-from kabaev@mail.ru) Received: from h0050da20495b.ne.mediaone.net ([24.147.104.88] helo=kan.ne.mediaone.net) by mx3.mail.ru with esmtp (Exim 3.02 #114) id 129KmJ-000GnR-00; Sat, 15 Jan 2000 07:25:31 +0300 Received: (from kan@localhost) by kan.ne.mediaone.net (8.9.3/8.9.3) id XAA01130; Fri, 14 Jan 2000 23:27:30 -0500 (EST) (envelope-from kan) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Fri, 14 Jan 2000 23:27:30 -0500 (EST) From: "Alexander N. Kabaev" To: "Alexander N. Kabaev" , obrien@FreeBSD.ORG Subject: Re: C++ exceptions doesn't work in shared libraries Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As promised, I tried to look into the problem little futher. The following patch fixes all crashes for me and I was unable to reproduce the bug anymore. I would really like to hear if it works for you too. I am especially interested to know if it works on Alpha, because I cannot test it myself. PS. The code in question is in mashine independent, so I have reason to believe that this patch may fix the problem for other platforms too... Index: contrib/gcc/except.c =================================================================== RCS file: /home/ncvs/src/contrib/gcc/except.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 except.c --- contrib/gcc/except.c 1999/10/16 06:03:55 1.1.1.2 +++ contrib/gcc/except.c 2000/01/15 04:06:03 @@ -724,9 +724,11 @@ rtx handler_label; { emit_label (handler_label); - + #ifdef HAVE_exception_receiver +#ifdef DONT_USE_BUILTIN_SETJMP if (! exceptions_via_longjmp) +#endif if (HAVE_exception_receiver) emit_insn (gen_exception_receiver ()); #endif To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message