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: "H . J . Lu" <hjl at lucon dot org>
- To: Jakub Jelinek <jakub at redhat dot com>
- 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 12:16:05 -0700
- Subject: Re: PATCH: Add --enable-__cxa_atexit
- References: <200205310627.CAA13821@nitro.msbb.uc.edu> <200205311604.MAA14609@nitro.msbb.uc.edu> <20020531104311.A25686@lucon.org> <20020531150210.D13411@devserv.devel.redhat.com>
On Fri, May 31, 2002 at 03:02:10PM -0400, Jakub Jelinek wrote:
> > 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).
I was told setting flag_use_cxa_atexit to 1 caused binutils "make check"
failure on Linux/PPC. But if __cxa_atexit doesn't buy Linux anything, I
don't see why it should be used/enabled for Linux. Maybe it should
be removed from gcc completely and put a working atexit based on
__cxa_atexit in libiberty.
H.J.