Files
buildtools/gcc
Brendan Shanks 7ab022f6e6 libiberty: Use posix_spawn in pex-unix when available.
Hi,

This patch implements pex_unix_exec_child using posix_spawn when
available.

This should especially benefit recent macOS (where vfork just calls
fork), but should have equivalent or faster performance on all
platforms.
In addition, the implementation is substantially simpler than the
vfork+exec code path.

Tested on x86_64-linux.

v2: Fix error handling (previously the function would be run twice in
case of error), and don't use a macro that changes control flow.

v3: Match file style for error-handling blocks, don't close
in/out/errdes on error, and check close() for errors.

libiberty/
	* configure.ac (AC_CHECK_HEADERS): Add spawn.h.
	(checkfuncs): Add posix_spawn, posix_spawnp.
	(AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
	* aclocal.m4, configure, config.in: Rebuild.
	* pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
2025-01-16 21:32:27 -05:00
..
2024-06-14 11:05:41 +02:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:05:41 +02:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:03:33 +02:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-07-21 10:00:58 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2023-08-10 07:04:31 +01:00
2024-06-14 11:05:41 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2023-06-18 01:43:18 +01:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2023-06-18 01:43:18 +01:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00
2024-06-14 11:03:33 +02:00

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.