This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug 2474 and cxa_atexit
- To: gcc-bugs at gcc dot gnu dot org
- Subject: bug 2474 and cxa_atexit
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 04 May 2001 13:57:05 +0100
- CC: mark at codesourcery dot com
- Organization: Codesourcery LLC
Hi,
bug 2474 concerns static object destruction ordering. That has
to be done in reverse order of constructor _completion_ [3.6.3]/1
The cxa_atexit API DTRT here, the non cxa_atexit algorithm gets it
wrong, as the bug report shows.
Will -fuse-cxa-atexit be enabled by default on the 3.0 branch?
Needless to say, this is an ABI issue. I have marked the bug
high priority.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org