Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2000 23:27:30 -0500 (EST)
From:      "Alexander N. Kabaev" <kabaev@mail.ru>
To:        "Alexander N. Kabaev" <kabaev@mail.ru>, obrien@FreeBSD.ORG
Cc:        current@FreeBSD.ORG
Subject:   Re: C++ exceptions doesn't work in shared libraries
Message-ID:  <XFMail.000114232730.kabaev@mail.ru>
In-Reply-To: <XFMail.000113223953.kabaev@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000114232730.kabaev>