[PATCH] testsuite: Fix bad-mapper-1.C test failures with posix_spawn

2023-11-11 Thread Brendan Shanks
bad-mapper-1.C has been failing since the posix_spawn codepath was added to libiberty, adjust the check to accept the changed error message. Patch has been verified on x86_64 Linux. gcc/testsuite: * g++.dg/modules/bad-mapper-1.C: Also accept posix_spawn. Signed-off-by: Brendan Shanks

Ping: [PATCH v3] libiberty: Use posix_spawn in pex-unix when available.

2023-11-01 Thread Brendan Shanks
Polite ping on this. > On Oct 4, 2023, at 11:28 AM, Brendan Shanks wrote: > > 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 equiv

[PATCH v3] libiberty: Use posix_spawn in pex-unix when available.

2023-10-04 Thread Brendan Shanks
ned-off-by: Brendan Shanks --- libiberty/configure.ac | 8 +- libiberty/pex-unix.c | 168 + 2 files changed, 173 insertions(+), 3 deletions(-) diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 0748c592704..2488b031bc8 100644 --- a

[PATCH v2] libiberty: Use posix_spawn in pex-unix when available.

2023-10-03 Thread Brendan Shanks
pawnp. (AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp. * configure, config.in: Rebuild. * pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function. Signed-off-by: Brendan Shanks --- libiberty/configure.ac | 8 ++-- libiberty/pex-unix.c

[PATCH] libiberty: Use posix_spawn in pex-unix when available.

2023-09-29 Thread Brendan Shanks
] (pex_unix_exec_child): New function. Signed-off-by: Brendan Shanks --- libiberty/configure.ac | 8 +++-- libiberty/pex-unix.c | 72 ++ 2 files changed, 77 insertions(+), 3 deletions(-) diff --git a/libiberty/configure.ac b/libiberty/configure.ac index