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 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


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