From: Paolo Carlini Date: Fri, 24 Oct 2014 12:54:43 +0000 (+0000) Subject: atomic_base.h: Avoid including . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=709def90a4b8dfa36dee0a51b40f6691d7d203cc;p=gcc.git atomic_base.h: Avoid including . 2014-10-24 Paolo Carlini * include/bits/atomic_base.h: Avoid including . * include/std/atomic: When __cplusplus < 201103L skip the rest of the header. * testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Adjust. From-SVN: r216667 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 0e230ca40d2..c2f185921f1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2014-10-24 Paolo Carlini + + * include/bits/atomic_base.h: Avoid including . + * include/std/atomic: When __cplusplus < 201103L skip the rest of + the header. + * testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc: Adjust. + 2014-10-23 François Dumont * testsuite/25_algorithms/make_heap/complexity.cc: Add missing test diff --git a/libstdc++-v3/include/bits/atomic_base.h b/libstdc++-v3/include/bits/atomic_base.h index 1fc0ebb7e40..1a511ad47d0 100644 --- a/libstdc++-v3/include/bits/atomic_base.h +++ b/libstdc++-v3/include/bits/atomic_base.h @@ -33,7 +33,6 @@ #pragma GCC system_header #include -#include #include #include diff --git a/libstdc++-v3/include/std/atomic b/libstdc++-v3/include/std/atomic index 85dc252bb46..3556241e22b 100644 --- a/libstdc++-v3/include/std/atomic +++ b/libstdc++-v3/include/std/atomic @@ -36,7 +36,7 @@ #if __cplusplus < 201103L # include -#endif +#else #include @@ -1129,4 +1129,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace -#endif +#endif // C++11 + +#endif // _GLIBCXX_ATOMIC diff --git a/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc b/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc index b199132e5d1..af2b39401b0 100644 --- a/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc +++ b/libstdc++-v3/testsuite/29_atomics/headers/atomic/std_c++0x_neg.cc @@ -18,7 +18,7 @@ // with this library; see the file COPYING3. If not see // . -#include // { dg-excess-errors "In file included from" } +#include // { dg-error "ISO C.. 2011" "" { target *-*-* } 32 }