From: Paolo Carlini Date: Tue, 24 May 2011 10:28:13 +0000 (+0000) Subject: c++config (_GLIBCXX_NOTHROW): Update for noexcept. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=782378a6aedade2d62515e7a09183beae3bfcebb;p=gcc.git c++config (_GLIBCXX_NOTHROW): Update for noexcept. 2011-05-24 Paolo Carlini * include/bits/c++config (_GLIBCXX_NOTHROW): Update for noexcept. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line number. From-SVN: r174107 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9c1cc0396e4..ce898d6fcd2 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2011-05-24 Paolo Carlini + + * include/bits/c++config (_GLIBCXX_NOTHROW): Update for noexcept. + * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error + line number. + 2011-05-23 Benjamin Kosnik PR libstdc++/37144 diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index 5cb654b45b7..e8a2946dcc3 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -52,10 +52,9 @@ # define _GLIBCXX_NORETURN __attribute__ ((__noreturn__)) #endif +// See below for C++ #ifndef _GLIBCXX_NOTHROW -# ifdef __cplusplus -# define _GLIBCXX_NOTHROW throw() -# else +# ifndef __cplusplus # define _GLIBCXX_NOTHROW __attribute__((__nothrow__)) # endif #endif @@ -110,6 +109,10 @@ # endif #endif +#ifndef _GLIBCXX_NOTHROW +# define _GLIBCXX_NOTHROW _GLIBCXX_USE_NOEXCEPT +#endif + // Macro for extern template, ie controling template linkage via use // of extern keyword on template declaration. As documented in the g++ // manual, it inhibits all implicit instantiations and is used diff --git a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc index 632dc190adc..eb77fb4837e 100644 --- a/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc +++ b/libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc @@ -25,4 +25,4 @@ #include -// { dg-error "multiple inlined namespaces" "" { target *-*-* } 252 } +// { dg-error "multiple inlined namespaces" "" { target *-*-* } 255 }