c++config (_GLIBCXX_NOTHROW): Update for noexcept.
2011-05-24 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/c++config (_GLIBCXX_NOTHROW): Update for noexcept. * testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line number. From-SVN: r174107
This commit is contained in:
parent
74d6ba0061
commit
782378a6ae
|
@ -1,3 +1,9 @@
|
||||||
|
2011-05-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
|
* 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 <bkoz@redhat.com>
|
2011-05-23 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
PR libstdc++/37144
|
PR libstdc++/37144
|
||||||
|
|
|
@ -52,10 +52,9 @@
|
||||||
# define _GLIBCXX_NORETURN __attribute__ ((__noreturn__))
|
# define _GLIBCXX_NORETURN __attribute__ ((__noreturn__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// See below for C++
|
||||||
#ifndef _GLIBCXX_NOTHROW
|
#ifndef _GLIBCXX_NOTHROW
|
||||||
# ifdef __cplusplus
|
# ifndef __cplusplus
|
||||||
# define _GLIBCXX_NOTHROW throw()
|
|
||||||
# else
|
|
||||||
# define _GLIBCXX_NOTHROW __attribute__((__nothrow__))
|
# define _GLIBCXX_NOTHROW __attribute__((__nothrow__))
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -110,6 +109,10 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _GLIBCXX_NOTHROW
|
||||||
|
# define _GLIBCXX_NOTHROW _GLIBCXX_USE_NOEXCEPT
|
||||||
|
#endif
|
||||||
|
|
||||||
// Macro for extern template, ie controling template linkage via use
|
// Macro for extern template, ie controling template linkage via use
|
||||||
// of extern keyword on template declaration. As documented in the g++
|
// of extern keyword on template declaration. As documented in the g++
|
||||||
// manual, it inhibits all implicit instantiations and is used
|
// manual, it inhibits all implicit instantiations and is used
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
// { dg-error "multiple inlined namespaces" "" { target *-*-* } 252 }
|
// { dg-error "multiple inlined namespaces" "" { target *-*-* } 255 }
|
||||||
|
|
Loading…
Reference in New Issue