Go to file
Jonathan Wakely a0a2d15215 libstdc++: Add autoconf checks for mkdir, chmod, chdir, and getcwd
The filesystem code was using these functions without checking for their
existence, assuming that any UNIX-like libc with <unistd.h> would always
provide them. That's not true for some newlib targets like arm-eabi.

libstdc++-v3/ChangeLog:

	* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Check for mkdir,
	chmod, chdir, and getcwd.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* src/c++17/fs_ops.cc (create_dir): Use USE_MKDIR macro.
	(fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
	(fs::permissions): Use USE_CHMOD macro.
	* src/filesystem/ops-common.h [FILESYSTEM_IS_WINDOWS]
	(chmod, mkdir, getcwd, chdir): Define new macros.
	[FILESYSTEM_IS_WINDOWS] (chmod, mkdir, getcwd, chdir): Use
	new macros.
	* src/filesystem/ops.cc (create_dir): Use USE_MKDIR macro.
	(fs::current_path): Use USE_GETCWD and USE_CHDIR macros.
	(fs::permissions): Use USE_CHMOD macro.

(cherry picked from commit 5435449be0)
2023-11-09 08:04:30 +00:00
INSTALL
c++tools Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
config Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
contrib Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
fixincludes Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
gcc Daily bump. 2023-11-09 00:20:49 +00:00
gnattools Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
gotools Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
include Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
intl Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libada Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libatomic Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libbacktrace Daily bump. 2023-08-04 00:19:47 +00:00
libcc1 Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libcody Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libcpp Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libdecnumber Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libffi Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libgcc Daily bump. 2023-11-09 00:20:49 +00:00
libgfortran Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libgm2 Daily bump. 2023-09-14 00:24:51 +00:00
libgo compiler, libgo: support bootstrapping gc compiler 2023-06-23 16:15:56 -07:00
libgomp Daily bump. 2023-08-25 00:21:58 +00:00
libiberty Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libitm Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libobjc Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libphobos Daily bump. 2023-11-08 00:21:03 +00:00
libquadmath Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libsanitizer Daily bump. 2023-08-08 00:20:39 +00:00
libssp Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
libstdc++-v3 libstdc++: Add autoconf checks for mkdir, chmod, chdir, and getcwd 2023-11-09 08:04:30 +00:00
libvtv Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
lto-plugin Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
maintainer-scripts Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
zlib Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
.dir-locals.el
.gitattributes
.gitignore .gitignore: do not ignore config.h 2022-07-19 17:07:04 +03:00
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Update ChangeLog and version files for release 2023-07-27 08:13:36 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS MAINTAINERS: Add myself as CTF and BTF reviewer 2023-04-06 00:17:13 -07:00
Makefile.def configure: Do not build the ununsed libffi shared library. 2022-12-31 17:51:47 +00:00
Makefile.in configure: Do not build the ununsed libffi shared library. 2022-12-31 17:51:47 +00:00
Makefile.tpl Merge modula-2 front end onto gcc. 2022-12-14 17:43:08 +00:00
README
ar-lib
compile
config-ml.in
config.guess
config.rpath
config.sub config.sub: change mode to 755. 2021-12-21 09:10:57 +01:00
configure rust: Disable --enable-languages=rust and silently exclude it from --enable-languages=all for GCC 13 2023-04-18 12:18:13 +02:00
configure.ac rust: Disable --enable-languages=rust and silently exclude it from --enable-languages=all for GCC 13 2023-04-18 12:18:13 +02:00
depcomp
install-sh
libtool-ldflags
libtool.m4 Generic configury support for shared libs on VxWorks 2022-10-11 07:31:07 +00:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

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.