re PR libstdc++/57691 (freestanding libstdc++ has compile error)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 24 Jun 2013 13:46:58 +0000 (13:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 24 Jun 2013 13:46:58 +0000 (13:46 +0000)
2013-06-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR libstdc++/57691
* include/c_global/cstdlib (atexit, at_quick_exit): If !_GLIBCC_HOSTED,
declare per the letter of the C++ standard in terms of void.
* include/c_std/cstdlib: Likewise.

From-SVN: r200371

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_global/cstdlib
libstdc++-v3/include/c_std/cstdlib

index bff4008ab348769c6f82f850c300352b7a855e06..27142f3efae6d0d4c8705abc602b4bf228ea73f3 100644 (file)
@@ -1,3 +1,10 @@
+2013-06-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       PR libstdc++/57691
+       * include/c_global/cstdlib (atexit, at_quick_exit): If !_GLIBCC_HOSTED,
+       declare per the letter of the C++ standard in terms of void.
+       * include/c_std/cstdlib: Likewise.
+
 2013-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/57674
index 9180036e634aa75de3d27b1fc6b5b372ea83cfbf..0ae28c67b06cbd3b88064c9821ca96b4d62ee58f 100644 (file)
 namespace std
 {
   extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
-  extern "C" int atexit(void (*)()) throw ();
+  extern "C" int atexit(void (*)(void)) throw ();
   extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
 #if __cplusplus >= 201103L
 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
-  extern "C" int at_quick_exit(void (*)()) throw ();
+  extern "C" int at_quick_exit(void (*)(void)) throw ();
 # endif
 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
   extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
index fa3e0ead9774724e72ec2367a5b27133ae51e3ec..ab7b030da86a1e561ae71e3793b7f0da052ef556 100644 (file)
 namespace std
 {
   extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
-  extern "C" int atexit(void (*)()) throw ();
+  extern "C" int atexit(void (*)(void)) throw ();
   extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
 #if __cplusplus >= 201103L
 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
-  extern "C" int at_quick_exit(void (*)()) throw ();
+  extern "C" int at_quick_exit(void (*)(void)) throw ();
 # endif
 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
   extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;