[c++] enable __cxa_atexit by default if found

Jakub Jelinek jakub@redhat.com
Wed Aug 7 01:36:00 GMT 2002


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



More information about the Gcc-patches mailing list