aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-05-05 00:39:45 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-05-05 00:39:45 +0000
commit88e6c94714fac98e4f077f57932d786930124d1c (patch)
treee4454e9c06fcb8ee92f13cc95920ee78a91d5cd7 /libstdc++-v3
parent56507c795d17a2394fc354862917d2141f115e98 (diff)
downloadgcc-88e6c94714fac98e4f077f57932d786930124d1c.zip
gcc-88e6c94714fac98e4f077f57932d786930124d1c.tar.gz
gcc-88e6c94714fac98e4f077f57932d786930124d1c.tar.bz2
cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus.
* libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception specification on #ifdef __cplusplus. From-SVN: r124456
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/libsupc++/cxxabi.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 70d304c..c264163 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-04 Mark Mitchell <mark@codesourcery.com>
+
+ * libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception
+ specification on #ifdef __cplusplus.
+
2007-05-04 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_memory.h: Rename to stl_auto_ptr.h.
@@ -20,6 +25,7 @@
* libsupc++/atexit_arm.cc: New file.
* libsupc++/vec.cc (__aeabi_atexit): Remove.
* libsupc++/cxxabi.h (__cxa_atexit): Add exception specification.
+
* libsupc++/Makefile.am: Add atexit_arm.cc.
* libsupc++/Makefile.in: Regenerated.
diff --git a/libstdc++-v3/libsupc++/cxxabi.h b/libstdc++-v3/libsupc++/cxxabi.h
index fb082d3..9e8a910 100644
--- a/libstdc++-v3/libsupc++/cxxabi.h
+++ b/libstdc++-v3/libsupc++/cxxabi.h
@@ -136,7 +136,11 @@ namespace __cxxabiv1
// DSO destruction.
int
- __cxa_atexit(void (*)(void*), void*, void*) throw ();
+ __cxa_atexit(void (*)(void*), void*, void*)
+#ifdef __cplusplus
+ throw ()
+#endif
+ ;
int
__cxa_finalize(void*);