Go to file
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 Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
contrib Handle libbacktrace in contrib/gcc_update 2017-10-02 13:58:11 +02:00
fixincludes Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
gcc Daily bump. 2018-01-05 00:16:14 +00:00
gnattools Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
gotools Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
include Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
INSTALL
intl Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libada Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libatomic Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libbacktrace elf.c: Fix typo in the last commit, SFH_COMPRESSED vs SHF_COMPRESSED. 2017-10-10 19:58:49 +00:00
libcc1 Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libcilkrts Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libcpp [PATCH, PR83492] Fix selection of aarch64 big-endian shift parameters based on __AARCH64EB__ 2018-01-05 13:58:54 +00:00
libdecnumber Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libffi Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libgcc Adapt Solaris 12 references 2017-11-21 09:31:12 +00:00
libgfortran PR libgfortran/83649 Chunk large reads and writes 2018-01-03 13:46:38 +02:00
libgo Adapt Solaris 12 references 2017-11-21 09:31:12 +00:00
libgomp backport: re PR fortran/81304 (Bogus warning with -Wsurprising and -fopenmp: Type specified for intrinsic function 'min' / 'max') 2017-12-15 23:00:48 +01:00
libhsail-rt Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libiberty Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libitm Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libmpx Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libobjc Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
liboffloadmic Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libquadmath Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libsanitizer re PR sanitizer/82595 (bootstrap fails in libsanitizer on powerpc64-unknown-linux-gnu) 2017-10-20 10:01:31 +02:00
libssp Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
libstdc++-v3 PR libstdc++/83626 Don't report errors when removing non-existent files 2018-01-05 21:27:25 +00:00
libvtv Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
lto-plugin Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
maintainer-scripts Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
zlib Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ChangeLog Update ChangeLog and version files for release 2017-08-14 07:59:11 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure
configure.ac
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
COPYING.RUNTIME
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.