This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add --enable-__cxa_atexit


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]