From 0f3d27f01a5d86b3f7a9323d2b7fe1aa11f6ad2b Mon Sep 17 00:00:00 2001
From: Jonathan Wakely
Date: Fri, 12 Dec 2014 15:58:49 +0000
Subject: [PATCH] re PR libstdc++/64276 (would be better to use
__cpp_exceptions rather than __EXCEPTIONS to determine whether exceptions are
available)
PR libstdc++/64276
* doc/doxygen/user.cfg.in: Define __cpp_exceptions and __cpp_rtti.
* doc/html/manual/using_exceptions.html: Regenerate.
* doc/xml/manual/using_exceptions.xml: Use SD-6 feature-testing
macros, __cpp_exceptions and __cpp_rtti, instead of __EXCEPTIONS and
__GXX_RTTI.
* include/bits/c++config: Likewise.
* include/bits/locale_classes.tcc: Likewise.
* include/bits/shared_ptr.h: Likewise.
* include/bits/shared_ptr_base.h: Likewise.
* include/debug/formatter.h: Likewise.
* include/experimental/any: Likewise.
* include/ext/rope: Likewise.
* include/ext/ropeimpl.h: Likewise.
* include/std/functional: Likewise.
* include/tr1/functional: Likewise.
* include/tr1/shared_ptr.h: Likewise.
* libsupc++/eh_call.cc: Likewise.
* libsupc++/eh_personality.cc: Likewise.
* libsupc++/exception_defines.h: Likewise.
* libsupc++/exception_ptr.h: Likewise.
* libsupc++/guard.cc: Likewise.
* libsupc++/pbase_type_info.cc: Likewise.
* libsupc++/pointer_type_info.cc: Likewise.
* libsupc++/vterminate.cc: Likewise.
* src/c++11/thread.cc: Likewise.
From-SVN: r218679
---
libstdc++-v3/ChangeLog | 27 +++++++++++++++++++
libstdc++-v3/doc/doxygen/user.cfg.in | 4 +--
.../doc/html/manual/using_exceptions.html | 6 ++---
.../doc/xml/manual/using_exceptions.xml | 4 +--
libstdc++-v3/include/bits/c++config | 2 +-
libstdc++-v3/include/bits/locale_classes.tcc | 4 +--
libstdc++-v3/include/bits/shared_ptr.h | 2 +-
libstdc++-v3/include/bits/shared_ptr_base.h | 6 ++---
libstdc++-v3/include/debug/formatter.h | 18 ++++++-------
libstdc++-v3/include/experimental/any | 20 +++++++-------
libstdc++-v3/include/ext/rope | 2 +-
libstdc++-v3/include/ext/ropeimpl.h | 2 +-
libstdc++-v3/include/std/functional | 10 +++----
libstdc++-v3/include/tr1/functional | 10 +++----
libstdc++-v3/include/tr1/shared_ptr.h | 4 +--
libstdc++-v3/libsupc++/eh_call.cc | 2 +-
libstdc++-v3/libsupc++/eh_personality.cc | 4 +--
libstdc++-v3/libsupc++/exception_defines.h | 2 +-
libstdc++-v3/libsupc++/exception_ptr.h | 2 +-
libstdc++-v3/libsupc++/guard.cc | 2 +-
libstdc++-v3/libsupc++/pbase_type_info.cc | 2 +-
libstdc++-v3/libsupc++/pointer_type_info.cc | 2 +-
libstdc++-v3/libsupc++/vterminate.cc | 2 +-
libstdc++-v3/src/c++11/thread.cc | 2 +-
24 files changed, 84 insertions(+), 57 deletions(-)
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 52f6d009353..7c3910362a3 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -5,6 +5,33 @@
disabled.
* testsuite/18_support/exception_ptr/64241.cc: New.
+ PR libstdc++/64276
+ * doc/doxygen/user.cfg.in: Define __cpp_exceptions and __cpp_rtti.
+ * doc/html/manual/using_exceptions.html: Regenerate.
+ * doc/xml/manual/using_exceptions.xml: Use SD-6 feature-testing
+ macros, __cpp_exceptions and __cpp_rtti, instead of __EXCEPTIONS and
+ __GXX_RTTI.
+ * include/bits/c++config: Likewise.
+ * include/bits/locale_classes.tcc: Likewise.
+ * include/bits/shared_ptr.h: Likewise.
+ * include/bits/shared_ptr_base.h: Likewise.
+ * include/debug/formatter.h: Likewise.
+ * include/experimental/any: Likewise.
+ * include/ext/rope: Likewise.
+ * include/ext/ropeimpl.h: Likewise.
+ * include/std/functional: Likewise.
+ * include/tr1/functional: Likewise.
+ * include/tr1/shared_ptr.h: Likewise.
+ * libsupc++/eh_call.cc: Likewise.
+ * libsupc++/eh_personality.cc: Likewise.
+ * libsupc++/exception_defines.h: Likewise.
+ * libsupc++/exception_ptr.h: Likewise.
+ * libsupc++/guard.cc: Likewise.
+ * libsupc++/pbase_type_info.cc: Likewise.
+ * libsupc++/pointer_type_info.cc: Likewise.
+ * libsupc++/vterminate.cc: Likewise.
+ * src/c++11/thread.cc: Likewise.
+
2014-12-12 Jonathan Wakely
* include/bits/stl_iterator.h (make_reverse_iterator): LWG DR 2285.
diff --git a/libstdc++-v3/doc/doxygen/user.cfg.in b/libstdc++-v3/doc/doxygen/user.cfg.in
index 7ec91a16fdb..019462e92ad 100644
--- a/libstdc++-v3/doc/doxygen/user.cfg.in
+++ b/libstdc++-v3/doc/doxygen/user.cfg.in
@@ -2142,8 +2142,8 @@ PREDEFINED = __cplusplus=201103L \
_GLIBCXX_USE_C99_STDINT_TR1 \
_GLIBCXX_USE_SCHED_YIELD \
_GLIBCXX_USE_NANOSLEEP \
- __EXCEPTIONS \
- __GXX_RTTI \
+ __cpp_exceptions \
+ __cpp_rtti \
ATOMIC_INT_LOCK_FREE \
PB_DS_DATA_TRUE_INDICATOR \
PB_DS_STATIC_ASSERT=// \
diff --git a/libstdc++-v3/doc/html/manual/using_exceptions.html b/libstdc++-v3/doc/html/manual/using_exceptions.html
index 83e4ba6eec9..f1dd0996758 100644
--- a/libstdc++-v3/doc/html/manual/using_exceptions.html
+++ b/libstdc++-v3/doc/html/manual/using_exceptions.html
@@ -151,7 +151,7 @@ exception neutrality and exception safety.
and __throw_exception_again
. They are defined
as follows.
-#ifdef __EXCEPTIONS
+#if __cpp_exceptions
# define __try try
# define __catch(X) catch(X)
# define __throw_exception_again throw
@@ -165,7 +165,7 @@ exception neutrality and exception safety.
class exception
, there exists a corresponding
function with C language linkage. An example:
-#ifdef __EXCEPTIONS
+#if __cpp_exceptions
void __throw_bad_exception(void)
{ throw bad_exception(); }
#else
@@ -310,4 +310,4 @@ is called.
GCC Bug 25191: exception_defines.h #defines try/catch
- .