Fix libstdc++ versioned namespace build
authorJonathan Wakely <jwakely@redhat.com>
Mon, 3 Oct 2016 14:35:28 +0000 (15:35 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 3 Oct 2016 14:35:28 +0000 (15:35 +0100)
commite347987da8d37eb2f1d41f1a8d3eda10e0e8e376
treeb6af99ff232031deeae85d4b5056af3171278fbc
parent1adae327479aaff6d8020d9df6e401b7075c5672
Fix libstdc++ versioned namespace build

PR libstdc++/68323
PR libstdc++/77794
* config/abi/pre/gnu-versioned-namespace.ver: Add exports for
__cxa_thread_atexit and __gnu_cxx::__freeres.
* include/Makefile.am: Add <experimental/bits/lfts_config.h>
* include/Makefile.in: Regenerate.
* include.bits/basic_string.h: Fix nesting of versioned namespaces.
* include/bits/c++config: Declare versioned namespaces for literals.
* include/bits/regex.h (basic_regex, match_results): Add workarounds
for PR c++/59256.
* include/bits/uniform_int_dist.h: Fix nesting of versioned namespace.
* include/std/chrono: Likewise.
* include/std/complex: Likewise.
* include/std/string_view: Likewise.
* include/std/variant: Likewise. Add workaround for PR c++/59256.
* include/experimental/bits/fs_fwd.h: Declare versioned namespace.
* include/experimental/bits/lfts_config.h: Declare versioned
namespaces.
* include/experimental/algorithm: Include
<experimental/bits/lfts_config.h>.
* include/experimental/any: Likewise.
* include/experimental/bits/erase_if.h: Likewise.
* include/experimental/chrono: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/memory_resource: Likewise.
* include/experimental/optional: Likewise.
* include/experimental/propagate_const: Likewise.
* include/experimental/random: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/utility: Likewise.
* include/experimental/string_view: Likewise. Fix nesting of
versioned namespaces.
* include/experimental/bits/string_view.tcc: Reopen inline namespace
for non-inline function definitions.
* testsuite/17_intro/using_namespace_std_exp_neg.cc: New test.
* testsuite/20_util/duration/literals/range.cc: Adjust dg-error line.
* testsuite/experimental/any/misc/any_cast_neg.cc: Likewise.
* testsuite/experimental/propagate_const/assignment/move_neg.cc:
Likewise.
* testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
* testsuite/experimental/propagate_const/requirements2.cc: Likewise.
* testsuite/experimental/propagate_const/requirements3.cc: Likewise.
* testsuite/experimental/propagate_const/requirements4.cc: Likewise.
* testsuite/experimental/propagate_const/requirements5.cc: Likewise.
* testsuite/ext/profile/mutex_extensions_neg.cc: Likewise.

From-SVN: r240714
40 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/uniform_int_dist.h
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/include/experimental/any
libstdc++-v3/include/experimental/bits/erase_if.h
libstdc++-v3/include/experimental/bits/fs_fwd.h
libstdc++-v3/include/experimental/bits/lfts_config.h [new file with mode: 0644]
libstdc++-v3/include/experimental/bits/string_view.tcc
libstdc++-v3/include/experimental/chrono
libstdc++-v3/include/experimental/functional
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/include/experimental/optional
libstdc++-v3/include/experimental/propagate_const
libstdc++-v3/include/experimental/random
libstdc++-v3/include/experimental/ratio
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/experimental/system_error
libstdc++-v3/include/experimental/tuple
libstdc++-v3/include/experimental/type_traits
libstdc++-v3/include/experimental/utility
libstdc++-v3/include/std/chrono
libstdc++-v3/include/std/complex
libstdc++-v3/include/std/string_view
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/17_intro/using_namespace_std_exp_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/duration/literals/range.cc
libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/assignment/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/cons/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements2.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements3.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements4.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements5.cc
libstdc++-v3/testsuite/ext/profile/mutex_extensions_neg.cc