[Bug c++/2474] global destructors should run in reverse order of _finishing_ construction

lassi.tuura@cern.ch gcc-bugzilla@gcc.gnu.org
Tue May 27 08:22:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2474



------- Additional Comments From lassi.tuura@cern.ch  2003-05-27 07:59 -------
Subject: Re:  global destructors should run in reverse order
 of _finishing_ construction

The output is correct with the following compiler:

Reading specs from
/tmp/gcc-3.3-install/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/tmp/gcc-3.3-install
--enable-shared --enable-__cxa_atexit
Thread model: posix
gcc version 3.3

It is not correct with this compiler:

Reading specs from
/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ./configure --prefix=/usr/local/gcc-alt-3.2 --enable-shared
Thread model: posix
gcc version 3.2

The platform is RedHat 7.3.1-derived.

Should I ask our system support people to rebuild the compilers with the
--enable-__cxa_exit option?  I would have assumed that it was on by
default if it didn't cause problems elsewhere.  What issues do we need
to consider if we enable the option?

Thanks in advance!
//lat




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list