This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA] Allow __cxa_atexit to be enabled by default


The following patch allows use of __cxa_atexit to be enabled by default on a per-target basis, and does so for NetBSD 2.0 and later.

Bootstrapped and regtested on i386-unknown-netbsdelf2.0. I also visually checked that auto-host.h had the correct value for DEFAULT_USE_CXA_ATEXIT in the following cases:

	* i386-unknown-netbsdelf2.0 (on)
	* i386-unknown-netbsdelf2.0 --disable-__cxa_atexit (off)
	* i386-unknown-netbsdelf1.7 (off)
	* i386-unknown-netbsdelf1.7 --enable-__cxa_atexit (on)

OK for mainline?

* config.gcc (default_use_cxa_atexit): New variable, defaults to no.
(*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
to yes.
* configure.in: Allow default_use_cxa_atexit to determine the
value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
disabled.
* configure: Regenerate.


-- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: cxa_atexit-patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]