Bug#148651: gcc 3.1-2 patch breaks binutils builds
On Sun, Jun 02, 2002 at 11:45:46PM +0200, Martin v. Loewis wrote:
> "H . J . Lu" <hjl@lucon.org> writes:
>
> > > The patch, in itself, is correct. Applications that want to conform to
> > > the C++ ABI *must* use __cxa_atexit. It is not the default in g++
> > > since not all C libraries support __cxa_atexit. However, GNU libc does
> > > support this function, so Debian (and all other distributions) need to
> > > activate it.
> > >
> >
> > However, atexit in glibc conforms to the C++ ABI. There is no need for
> > gcc to use __cxa_atexit on glibc.
>
> There is a need for the -fuse-cxa-atexit option on glibc, since g++
> will never register global dtors with atexit; it will only register
> them with __cxa_atexit (if flag_use_cxa_atexit is true). It is easy to
> demonstrate that the compiler does not work correctly if
> -fno-use-cxa-atexit is used.
Please provide a testcase to show that. I don't believe -fuse-cxa-atexit
should make a difference on glibc.
H.J.
--
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: