]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
error-h: port to Intel OneAPI icx 2026.0.0
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Apr 2026 21:01:36 +0000 (14:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Apr 2026 21:02:16 +0000 (14:02 -0700)
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.

ChangeLog
m4/error_h.m4

index 98ad2906929221786ed4f1afba5ddcfe28d714c1..4d1ae29513c525e0917b13f4ca70890939226c6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
index 73e969430d992ead6a7c063d74d885b97689ab5e..78cb57385c5b640a49b2f31714d6d843a6e2d9f6 100644 (file)
@@ -1,5 +1,5 @@
 # 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,
@@ -64,8 +64,18 @@ AC_DEFUN_ONCE([gl_ERROR_H],
          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");
             ]])