https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124371
Bug ID: 124371
Summary: [16 Regression] Build fails for x86_64-pc-cygwin due
to implicit declaration of function 'kill_all_images'
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: Evgeny.Karpov at arm dot com
Target Milestone: ---
The patch below introduces a regression for x86_64-pc-cygwin target.
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=df7d47635cc6326c6eb87ed05debf3367018ea3c
libgfortran/caf/shmem/supervisor.c:438:19: error: implicit declaration of
function 'kill_all_images' [-Wimplicit-function-declaration]
Perhaps it might be properly fixed by this change.
--- a/libgfortran/caf/shmem/supervisor.c
+++ b/libgfortran/caf/shmem/supervisor.c
@@ -300,7 +300,7 @@ startWorker (image *im __attribute__ ((unused)),
return true;
}
-#ifndef WIN32
+#ifdef HAVE_FORK
static void
kill_all_images (supervisor *m)
{