summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-11 17:50:13 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-11 17:50:13 +0000
commit6985c6f9253a2e5abc4dc1612ad6ff6c90800752 (patch)
treefe180eb10b98589f5ed9fd419ccd34e3c604d803 /libstdc++-v3/include/c_std
parentffc1977a9d0e485ad63906c4ad8998166e7250b9 (diff)
downloadppe42-gcc-6985c6f9253a2e5abc4dc1612ad6ff6c90800752.tar.gz
ppe42-gcc-6985c6f9253a2e5abc4dc1612ad6ff6c90800752.zip
* linkage.m4 (GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE): New.
(GLIBCXX_CHECK_STDLIB_SUPPORT): Check for atexit and at_quick_exit. * include/c_std/cstdlib: Add atexit and at_quick_exit. * include/c_global/cstdlib: Add atexit and at_quick_exit. * testsuite/18_support/quick_exit/quick_exit.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std')
-rw-r--r--libstdc++-v3/include/c_std/cstdlib10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_std/cstdlib b/libstdc++-v3/include/c_std/cstdlib
index 224fccfd9c5..9d2f51ede28 100644
--- a/libstdc++-v3/include/c_std/cstdlib
+++ b/libstdc++-v3/include/c_std/cstdlib
@@ -57,6 +57,8 @@ namespace std
extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
extern "C" int atexit(void (*)()) throw ();
extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
+ extern "C" int at_quick_exit(void (*)()) throw ();
+ extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
} // namespace
#else
@@ -67,6 +69,7 @@ namespace std
#undef abort
#undef abs
#undef atexit
+#undef at_quick_exit
#undef atof
#undef atoi
#undef atol
@@ -83,6 +86,7 @@ namespace std
#undef mbstowcs
#undef mbtowc
#undef qsort
+#undef quick_exit
#undef rand
#undef realloc
#undef srand
@@ -103,6 +107,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using ::abort;
using ::abs;
using ::atexit;
+#ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
+ using ::at_quick_exit;
+#endif
using ::atof;
using ::atoi;
using ::atol;
@@ -121,6 +128,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
using ::mbtowc;
#endif // _GLIBCXX_HAVE_MBSTATE_T
using ::qsort;
+#ifdef _GLIBCXX_HAVE_QUICK_EXIT
+ using ::quick_exit;
+#endif
using ::rand;
using ::realloc;
using ::srand;
OpenPOWER on IntegriCloud