2006-10-27 Danny Smith <dannysmith@users.sourceforge.net>
* target.h (targetm.cxx.use_dllonexit): New target hook.
* target-def.h: (TARGET_CXX_USE_DLLONEXIT): Define default.
* config/i386/mingw32.h (TARGET_CXX_USE_DLLONEXIT): Override
default.
* doc/tm.texi (TARGET_CXX_USE_DLLONEXIT): Document.
cp/Changelog
*decl2.c (one_static_initialization_or_destruction): Check,
set guard variable and register static destructor here if
targetm.cxx.use_dllonexit.
(cp_finish_file): Don't generate destructor if
targetm.cxx.use_dllonexit.