Re: is g++-cxa-atexit.dpatch still needed
Jack Howarth <howarth@bromo.msbb.uc.edu> writes:
> Here is another message from Jakub on the complete unnecessity
> of debian using the patch...
This is not relevant.
> It is not about being or not being accurate for gcc 3.1, it is about glibc
> 2001-02-26 or later having:
>
> /* This is defined by newer gcc version unique for each module. */
> extern void *__dso_handle __attribute__ ((__weak__));
>
> /* Register FUNC to be executed by `exit'. */
> int
> atexit (void (*func) (void))
> {
> return __cxa_atexit ((void (*) (void *)) func, NULL,
> &__dso_handle == NULL ? NULL : __dso_handle);
> }
Even with this code, g++ 3.1 will not correctly order destructors for
global objects unless -fuse-cxa-atexit is given, since it will simply
refuse to register dtors with atexit at all without this option.
Regards,
Martin
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: