Problem reported by Harmen Stoppels in:
https://lists.gnu.org/r/bug-gnulib/2026-04/msg00085.html
* m4/error_h.m4 (gl_ERROR_H): Plant an alarm in case error infloops.
2026-04-13 Paul Eggert <eggert@cs.ucla.edu>
+ error-h: port to Intel OneAPI icx 2026.0.0
+ Problem reported by Harmen Stoppels in:
+ https://lists.gnu.org/r/bug-gnulib/2026-04/msg00085.html
+ * m4/error_h.m4 (gl_ERROR_H): Plant an alarm in case error infloops.
+
regex: omit unnecessary check_halt_state_context
* lib/regexec.c (prune_impossible_nodes):
Avoid unnecessary call to check_halt_state_context.
# error_h.m4
-# serial 5
+# serial 6
dnl Copyright (C) 1996-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
#include <error.h>
+ #include <signal.h>
+ #ifdef SIGALRM
+ # include <unistd.h> /* for alarm */
+ #endif
static void print_no_progname (void) {}
]], [[
+ /* error (0, 0, ...) infloops on Intel OneAPI icx 2026.0.0. */
+ #ifdef SIGALRM
+ signal (SIGALRM, SIG_DFL);
+ alarm (2);
+ #endif
+
error_print_progname = print_no_progname;
error (0, 0, "foo");
]])