Date: Thu, 2 Apr 1998 07:42:07 +1000 (EST) From: John Birrell <jb@cimlogic.com.au> To: tlambert@primenet.com (Terry Lambert) Cc: hackers@FreeBSD.ORG Subject: Exception handling in 2.8.0 (Was Re: mozilla source) Message-ID: <199804012142.HAA07461@cimlogic.com.au> In-Reply-To: <199804011951.MAA18072@usr05.primenet.com> from Terry Lambert at "Apr 1, 98 07:51:14 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Terry Lambert wrote:
> In contrast, you can, with this patch (which was already submitted
> for inclusion in the FreeBSD gcc/g++ 2.8.x port, but is apparently
> not there: Jordan had problems) *dynamically* decide, *at the time
> you compile your code, NOT at the time you compile your compiler*
> whther or not you are required to use _THREAD_SAFE and/or link with
> -lc_r.
>
> Note: Cygnus rejected this patch because they had already decided
> on their bogus implementation, where you need two compilers to be
> able to compile with or without threads. The patch was not submitted
> to FSF (but should be) for fear of a schism.
I think there is an alternative method that will achieve the same result,
but without affecting Cygnus/FSF sources.
We can add a replacement function for
void ***
__get_dynamic_handler_chain ()
{
return &__dynamic_handler_chain;
}
to libc_r that can do this:
void ***
__get_dynamic_handler_chain ()
{
return &_thread_run->dynamic_handler_chain;
}
I guess that I must be missing something here. Seems simple.
--
John Birrell - jb@cimlogic.com.au; jb@freebsd.org
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804012142.HAA07461>
