Commit a4e28c81 by Bernd Edlinger Committed by Paolo Carlini

re PR libstdc++/57691 (freestanding libstdc++ has compile error)

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
parent 5fe8e757
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> 2013-06-22 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57674 PR libstdc++/57674
......
...@@ -55,11 +55,11 @@ ...@@ -55,11 +55,11 @@
namespace std namespace std
{ {
extern "C" void abort(void) throw () _GLIBCXX_NORETURN; 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; extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
extern "C" int at_quick_exit(void (*)()) throw (); extern "C" int at_quick_exit(void (*)(void)) throw ();
# endif # endif
# ifdef _GLIBCXX_HAVE_QUICK_EXIT # ifdef _GLIBCXX_HAVE_QUICK_EXIT
extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN; extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
......
...@@ -55,11 +55,11 @@ ...@@ -55,11 +55,11 @@
namespace std namespace std
{ {
extern "C" void abort(void) throw () _GLIBCXX_NORETURN; 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; extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
# ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
extern "C" int at_quick_exit(void (*)()) throw (); extern "C" int at_quick_exit(void (*)(void)) throw ();
# endif # endif
# ifdef _GLIBCXX_HAVE_QUICK_EXIT # ifdef _GLIBCXX_HAVE_QUICK_EXIT
extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN; extern "C" void quick_exit(int) throw() _GLIBCXX_NORETURN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment