]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
c-stack: Don't use an undefined C macro (regression from 2020-10-04).
authorBruno Haible <bruno@clisp.org>
Thu, 15 Apr 2021 00:11:51 +0000 (02:11 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 15 Apr 2021 00:14:13 +0000 (02:14 +0200)
* lib/c-stack.c: Test GNU C version directly, without __GNUC_PREREQ.

ChangeLog
lib/c-stack.c

index 69b8c25baef0d6d4c97e935ca4e4fc0447edc53d..969a9ffb721dfb3b94fbb6015436261b4736ac6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-14  Bruno Haible  <bruno@clisp.org>
+
+       c-stack: Don't use an undefined C macro (regression from 2020-10-04).
+       * lib/c-stack.c: Test GNU C version directly, without __GNUC_PREREQ.
+
 2021-04-12  Bruno Haible  <bruno@clisp.org>
 
        doc: Fix confusion between LIBADD and LDADD.
index 50caafac2819aa791e838b25a18b783696bdf689..c0da7f40480ec56fd23f4c2775027fcc5bf4745e 100644 (file)
@@ -171,7 +171,7 @@ null_action (int signo _GL_UNUSED)
 #if USE_LIBSIGSEGV
 
 /* Pacify GCC 9.3.1, which otherwise would complain about segv_handler.  */
-# if __GNUC_PREREQ (4, 6)
+# if 4 < __GNUC__ + (6 <= __GNUC_MINOR__)
 #  pragma GCC diagnostic ignored "-Wsuggest-attribute=pure"
 # endif