Hi,

see audit trail for details. Committed to mainline.

Thanks,
Paolo.

//////////////////////
2013-06-24  Bernd Edlinger  <bernd.edlin...@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.
Index: include/c_global/cstdlib
===================================================================
--- include/c_global/cstdlib    (revision 200352)
+++ include/c_global/cstdlib    (working copy)
@@ -55,11 +55,11 @@
 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: include/c_std/cstdlib
===================================================================
--- include/c_std/cstdlib       (revision 200352)
+++ include/c_std/cstdlib       (working copy)
@@ -55,11 +55,11 @@
 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;

Reply via email to