This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [c++] enable __cxa_atexit by default if found
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, hjl at lucon dot org
- Date: Wed, 7 Aug 2002 04:36:41 -0400
- Subject: Re: [c++] enable __cxa_atexit by default if found
- References: <200208070451.g774pgJ02473@fillmore.constant.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Aug 06, 2002 at 09:51:42PM -0700, Benjamin Kosnik wrote:
>
> Adds what is considered sane behavior by default, if libc has __cxa_atexit.
This really has to be guarded just for native builds, or the search done
using nm on the expected location of libc for cross environments.
Furthermore, doesn't the defaults.h change make __cxa_atexit
completely unconditional (as configure sets DEFAULT_USE_CXA_ATEXIT if
it thinks it should use it (and leaves #undef DEFAULT_USE_CXA_ATEXIT
in auto-host.h otherwise), then defaults.h comes in and sets it to 1
if it was not defined yet)?
>
> 2002-08-06 Benjamin Kosnik <bkoz@redhat.com>
>
> * defaults.h (DEFAULT_USE_CXA_ATEXIT): Default to yes.
> * configure.in: Test for __cxa_atexit, enable if __cxa_atexit if found.
> * configure: Regenerate.
Jakub