From: Jonathan Wakely Date: Thu, 29 Aug 2019 12:16:27 +0000 (+0100) Subject: PR libstdc++/91067 add more missing exports for directory iterators X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d02a0412422b144f6e84605997302a1c36e81600;p=gcc.git PR libstdc++/91067 add more missing exports for directory iterators PR libstdc++/91067 * acinclude.m4 (libtool_VERSION): Bump to 6:28:0. * configure: Regenerate. * config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export missing symbols. * testsuite/27_io/filesystem/iterators/91067.cc: Test move constructors. * testsuite/util/testsuite_abi.cc: Add new symbol version. From-SVN: r275032 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 706253c0272..eaa6f743309 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,14 @@ +2019-08-29 Jonathan Wakely + + PR libstdc++/91067 + * acinclude.m4 (libtool_VERSION): Bump to 6:28:0. + * configure: Regenerate. + * config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export + missing symbols. + * testsuite/27_io/filesystem/iterators/91067.cc: Test move + constructors. + * testsuite/util/testsuite_abi.cc: Add new symbol version. + 2019-08-29 Jakub Jelinek ::__shared_ptr() + # __shared_ptr<_Dir>::__shared_ptr() (base object ctor) _ZNSt12__shared_ptrINSt10filesystem4_DirELN9__gnu_cxx12_Lock_policyE[012]EEC2Ev; _ZNSt12__shared_ptrINSt10filesystem7__cxx114_DirELN9__gnu_cxx12_Lock_policyE[012]EEC2Ev; - # __shared_ptr::__shared_ptr() + # __shared_ptr::__shared_ptr() (base object ctor) _ZNSt12__shared_ptrINSt10filesystem28recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEC2Ev; _ZNSt12__shared_ptrINSt10filesystem7__cxx1128recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEC2Ev; @@ -2282,6 +2282,18 @@ GLIBCXX_3.4.27 { } GLIBCXX_3.4.26; +GLIBCXX_3.4.28 { + + # __shared_ptr<_Dir>::__shared_ptr(__shared_ptr&&) (base object ctor) + _ZNSt12__shared_ptrINSt10filesystem4_DirELN9__gnu_cxx12_Lock_policyE[012]EEC2EOS4_; + _ZNSt12__shared_ptrINSt10filesystem7__cxx114_DirELN9__gnu_cxx12_Lock_policyE[012]EEC2EOS5_; + + # __shared_ptr::__shared_ptr(__shared_ptr&&) (base object ctor) + _ZNSt12__shared_ptrINSt10filesystem28recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEC2EOS5_; + _ZNSt12__shared_ptrINSt10filesystem7__cxx1128recursive_directory_iterator10_Dir_stackELN9__gnu_cxx12_Lock_policyE[012]EEC2EOS6_; + +} GLIBCXX_3.4.27; + # Symbols in the support library (libsupc++) have their own tag. CXXABI_1.3 { diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index ab463993341..8307ae3f63e 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -79482,7 +79482,7 @@ $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} fi # For libtool versioning info, format is CURRENT:REVISION:AGE -libtool_VERSION=6:27:0 +libtool_VERSION=6:28:0 # Everything parsed; figure out what files and settings to use. case $enable_symvers in diff --git a/libstdc++-v3/testsuite/27_io/filesystem/iterators/91067.cc b/libstdc++-v3/testsuite/27_io/filesystem/iterators/91067.cc index 54172d9f20b..39fbc7b5d96 100644 --- a/libstdc++-v3/testsuite/27_io/filesystem/iterators/91067.cc +++ b/libstdc++-v3/testsuite/27_io/filesystem/iterators/91067.cc @@ -37,9 +37,25 @@ test02() d = std::move(d); } +void +test03() +{ + std::filesystem::directory_iterator d; + auto d2 = std::move(d); +} + +void +test04() +{ + std::filesystem::recursive_directory_iterator d; + auto d2 = std::move(d); +} + int main() { test01(); test02(); + test03(); + test04(); } diff --git a/libstdc++-v3/testsuite/util/testsuite_abi.cc b/libstdc++-v3/testsuite/util/testsuite_abi.cc index 1277972049f..dfce3741521 100644 --- a/libstdc++-v3/testsuite/util/testsuite_abi.cc +++ b/libstdc++-v3/testsuite/util/testsuite_abi.cc @@ -208,6 +208,7 @@ check_version(symbol& test, bool added) known_versions.push_back("GLIBCXX_3.4.25"); known_versions.push_back("GLIBCXX_3.4.26"); known_versions.push_back("GLIBCXX_3.4.27"); + known_versions.push_back("GLIBCXX_3.4.28"); known_versions.push_back("CXXABI_1.3"); known_versions.push_back("CXXABI_LDBL_1.3"); known_versions.push_back("CXXABI_1.3.1"); @@ -239,7 +240,7 @@ check_version(symbol& test, bool added) test.version_status = symbol::incompatible; // Check that added symbols are added in the latest pre-release version. - bool latestp = (test.version_name == "GLIBCXX_3.4.27" + bool latestp = (test.version_name == "GLIBCXX_3.4.28" || test.version_name == "CXXABI_1.3.12" || test.version_name == "CXXABI_FLOAT128" || test.version_name == "CXXABI_TM_1");