From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54292 invoked by alias); 7 Oct 2015 21:01:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 52732 invoked by uid 55); 7 Oct 2015 21:01:24 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/67173] experimental/filesystem/operations/current_path.cc FAILs Date: Wed, 07 Oct 2015 21:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00540.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67173 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Wed Oct 7 21:00:50 2015 New Revision: 228584 URL: https://gcc.gnu.org/viewcvs?rev=228584&root=gcc&view=rev Log: Backport Filesystem TS fixes from mainline. PR libstdc++/67173 PR libstdc++/67747 * acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check _XOPEN_VERSION and PATH_MAX for _GLIBCXX_USE_REALPATH. Remove _GLIBCXX_ prefix from HAVE_STRUCT_DIRENT_D_TYPE. * config.h.in: Regenerate. * configure: Regenerate. * include/bits/locale_conv.h [!_GLIBCXX_USE_WCHAR_T] (__do_str_codecvt, __str_codecvt_in, __str_codecvt_out): Enable. * include/experimental/fs_dir.h (operator==, operator==): Use owner_before instead of pointer equality. (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove. * include/experimental/fs_path.h (operator==, operator==): * include/experimental/fs_path.h [!_GLIBCXX_USE_WCHAR_T] (path::wstring, path::generic_wstring): Disable. * src/filesystem/path.cc (path::_S_convert_loc) [!_GLIBCXX_USE_WCHAR_T]: Skip conversion. * src/filesystem/Makefile.am: Add cxx11_abi_sources. * src/filesystem/Makefile.in: Regenerate. * src/filesystem/cow-dir.cc: New. * src/filesystem/cow-ops.cc: New. * src/filesystem/cow-path.cc: New. * src/filesystem/dir.cc: Define macro for new ABI. (native_readdir): Remove. (_Dir::advance): Use readdir instead of native_readdir. (recursive_directory_iterator(const path&, directory_options, error_code*)): Use swap instead of reset. (ErrorCode): Remove. (_Dir::advance): Change ErrorCode parameter to error_code*, add directory_options parameter and check it on error. (opendir): Rename to open_dir to avoid clashing with macro. Change ErrorCode parameter to error_code*. (make_shared_dir): Remove. (native_readdir) [_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Don't set errno. (directory_iterator(std::shared_ptr<_Dir>, error_code*)): Remove. (directory_iterator(const path&, directory_options, error_code*)): Pass options to _Dir::advance and create non-end iterator on error. (recursive_directory_iterator(const path&, directory_options, error_code*)): Clear error_code on ignored error, create non-end iterator otherwise. (recursive_directory_iterator::increment): Pass _M_options to _Dir::advance. (recursive_directory_iterator::pop): Likewise. * src/filesystem/ops.cc: Define macro for new ABI. (canonical) [!_GLIBCXX_USE_REALPATH]: Add alternative implementation. (is_dot, is_dotdot): Define new helpers. (create_directories): Fix error handling. * src/filesystem/path.cc: Define macro for new ABI. (path::_S_convert_loc) [!_GLIBCXX_USE_WCHAR_T]: Skip conversion. * testsuite/experimental/filesystem/iterators/directory_iterator.cc: New. * testsuite/experimental/filesystem/iterators/ recursive_directory_iterator.cc: New. * testsuite/experimental/filesystem/operations/canonical.cc: New. * testsuite/experimental/filesystem/operations/create_directories.cc: New. * testsuite/experimental/filesystem/operations/exists.cc: Add more tests. * testsuite/experimental/filesystem/operations/absolute.cc: Add test variables. * testsuite/experimental/filesystem/operations/copy.cc: Likewise. * testsuite/experimental/filesystem/operations/current_path.cc: Likewise. * testsuite/experimental/filesystem/operations/file_size.cc: Likewise. * testsuite/experimental/filesystem/operations/status.cc: Likewise. * testsuite/experimental/filesystem/operations/temp_directory_path.cc: Likewise. * testsuite/experimental/filesystem/path/assign/assign.cc: Check for wchar_t support. * testsuite/experimental/filesystem/path/concat/strings.cc: Likewise. * testsuite/experimental/filesystem/path/construct/range.cc: Likewise. Added: branches/gcc-5-branch/libstdc++-v3/src/filesystem/cow-dir.cc - copied, changed from r228554, branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc branches/gcc-5-branch/libstdc++-v3/src/filesystem/cow-ops.cc - copied, changed from r228554, branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc branches/gcc-5-branch/libstdc++-v3/src/filesystem/cow-path.cc - copied, changed from r228554, branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/ branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc - copied, changed from r228554, branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/create_directories.cc - copied, changed from r228554, branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc Removed: branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/factory/ branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/io/ branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/native/ Modified: branches/gcc-5-branch/libstdc++-v3/ChangeLog branches/gcc-5-branch/libstdc++-v3/acinclude.m4 branches/gcc-5-branch/libstdc++-v3/config.h.in branches/gcc-5-branch/libstdc++-v3/configure branches/gcc-5-branch/libstdc++-v3/include/bits/locale_conv.h branches/gcc-5-branch/libstdc++-v3/include/experimental/fs_dir.h branches/gcc-5-branch/libstdc++-v3/include/experimental/fs_path.h branches/gcc-5-branch/libstdc++-v3/src/filesystem/Makefile.am branches/gcc-5-branch/libstdc++-v3/src/filesystem/Makefile.in branches/gcc-5-branch/libstdc++-v3/src/filesystem/dir.cc branches/gcc-5-branch/libstdc++-v3/src/filesystem/ops.cc branches/gcc-5-branch/libstdc++-v3/src/filesystem/path.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/absolute.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/copy.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/current_path.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/exists.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/file_size.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/status.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/operations/temp_directory_path.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/assign/assign.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/concat/strings.cc branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/path/construct/range.cc