diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2013-06-24 13:46:58 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-06-24 13:46:58 +0000 |
commit | a4e28c8103ead2320c83a7f18131b8dc91edd94b (patch) | |
tree | 04d50b35d57d53ef0eacc73129df98801f4b8ad9 /libstdc++-v3 | |
parent | 5fe8e75785444ce465efa5692553ef7cac07a3bd (diff) | |
download | gcc-a4e28c8103ead2320c83a7f18131b8dc91edd94b.zip gcc-a4e28c8103ead2320c83a7f18131b8dc91edd94b.tar.gz gcc-a4e28c8103ead2320c83a7f18131b8dc91edd94b.tar.bz2 |
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/c_global/cstdlib | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/c_std/cstdlib | 4 |
3 files changed, 11 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index bff4008..27142f3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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 diff --git a/libstdc++-v3/include/c_global/cstdlib b/libstdc++-v3/include/c_global/cstdlib index 9180036..0ae28c6 100644 --- a/libstdc++-v3/include/c_global/cstdlib +++ b/libstdc++-v3/include/c_global/cstdlib @@ -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; diff --git a/libstdc++-v3/include/c_std/cstdlib b/libstdc++-v3/include/c_std/cstdlib index fa3e0ea..ab7b030 100644 --- a/libstdc++-v3/include/c_std/cstdlib +++ b/libstdc++-v3/include/c_std/cstdlib @@ -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; |