This is the mail archive of the gcc@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 Thu, Jun 06, 2002 at 07:06:30PM +0200, Jakub Jelinek wrote:
> >  /* Define this so we can compile MS code for use with WINE.  */
> >  #define HANDLE_PRAGMA_PACK_PUSH_POP
> > +
> > +/* Use __cxa_atexit, rather than atexit, to register C++ destructors
> > +   for local statics and global objects. */
> 
> Except that all such comments are very misleading, because
> DEFAULT_USE_CXA_ATEXIT are not about whether it should use __cxa_atexit,
> rather than atexit, but actually whether it should use __cxa_atexit
> rather than DT_FINI/DT_FINI_ARRAY. It could use atexit the same way
> as __cxa_atexit.
> 

I copied it from cp/decl2.c:

/* Nonzero to use __cxa_atexit, rather than atexit, to register
   destructors for local statics and global objects.  */

int flag_use_cxa_atexit;


H.J.


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