gcc/libstdc++-v3
Jonathan Wakely 72eaf75b30 PR libstdc++/83626 Don't report errors when removing non-existent files
Backport from mainline
2018-01-05  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/83626
	* src/filesystem/ops.cc (remove(const path&, error_code&)): Do not
	report an error for ENOENT.
	(remove_all(const path&)): Fix type of result variable.
	(remove_all(const path&, error_code&)): Use non-throwing increment
	for directory iterator. Call POSIX remove directly to avoid redundant
	calls to symlink_status. Do not report errors for ENOENT.
	* testsuite/experimental/filesystem/operations/remove_all.cc: Test
        throwing overload.

Backport from mainline
2018-01-04  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/83626
	* src/filesystem/ops.cc (remove(const path&, error_code&))): Remove
	redundant call to ec.clear().
	(remove_all(const path&, error_code&))): Do not return an error for
	non-existent paths.
	* testsuite/experimental/filesystem/operations/remove.cc: New test.
	* testsuite/experimental/filesystem/operations/remove_all.cc: Fix
	expected results for non-existent paths.

From-SVN: r256287
2018-01-05 21:27:25 +00:00
..
config PR libstdc++/81751 don't call fflush(NULL) 2017-08-14 13:14:09 +01:00
doc PR libstdc++/82522 overload map insert functions for rvalues (LWG 2354) 2017-12-01 17:50:59 +00:00
include Protect optional's deduction guide with the feature macro 2018-01-04 20:58:29 +02:00
libsupc++ PR libstdc++/81835 fix broken URLs in libstdc++ docs 2017-09-13 11:07:25 +01:00
po
python Adjust optional's pretty printer for LWG 2900. 2017-03-29 15:05:50 +03:00
scripts
src PR libstdc++/83626 Don't report errors when removing non-existent files 2018-01-05 21:27:25 +00:00
testsuite PR libstdc++/83626 Don't report errors when removing non-existent files 2018-01-05 21:27:25 +00:00
acinclude.m4 PR libstdc++/81092 add std::wstring symbols and bump library version 2017-06-16 13:18:53 +01:00
aclocal.m4
ChangeLog PR libstdc++/83626 Don't report errors when removing non-existent files 2018-01-05 21:27:25 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
config.h.in Fix typo in config.h.in comment 2017-03-15 15:23:44 +00:00
configure PR libstdc++/81092 Regenerate configure for libtool_VERSION change 2017-06-21 09:55:52 +01:00
configure.ac
configure.host Separate Solaris/SPARC and x86 baselines 2017-02-02 16:24:03 +00:00
crossconfig.m4
fragment.am
linkage.m4
Makefile.am
Makefile.in
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.