This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Add --enable-__cxa_atexit
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: Jack Howarth <howarth at nitro dot med dot uc dot edu>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 May 2002 15:02:10 -0400
- Subject: Re: PATCH: Add --enable-__cxa_atexit
- References: <200205310627.CAA13821@nitro.msbb.uc.edu> <200205311604.MAA14609@nitro.msbb.uc.edu> <20020531104311.A25686@lucon.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, May 31, 2002 at 10:43:11AM -0700, H . J . Lu wrote:
> On Fri, May 31, 2002 at 12:04:24PM -0400, Jack Howarth wrote:
> > HJ,
> > That is a patch one of the debian gcc packagers added in to
> > their current gcc-3.1 source package. The reason for it is unclear.
> > I noticed that Mark Mitchell is the person checking in code
> > related to the use of __cxa_atexit in that manner so I just emailed
> > him to ask about the rationality of that patch. My instinct is that
> > this is toggling on code that has not been throughly tested in
> > gcc 3.1 since it doesn't exist as a configure --enable- type option.
> > I'll pass your comments back to them.
>
> Here is a patch.
>
>
> H.J.
> ---
> 2002-05-31 H.J. Lu (hjl@gnu.org)
>
> * configure.in: Add --enable-__cxa_atexit.
> * configure: Regenerated.
> * config.in: Likewise.
>
> 2002-05-31 H.J. Lu (hjl@gnu.org)
>
> * decl2.c (flag_use_cxa_atexit): Set to 1 if ENABLE_CXA_ATEXIT
> is defined.
Can you please explain why do you want this?
atexit works just fine (since 2001-02-26 glibc change, it has the same
property of running the registered function also at dlclose time).
Jakub