]> Savannah Git Hosting - gnulib.git/commitdiff
std-gnu23: sync from Autoconf
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Nov 2024 17:30:24 +0000 (09:30 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Nov 2024 17:30:24 +0000 (09:30 -0800)
This fixes a problem reported from Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html
* m4/std-gnu23.m4 (_AC_C_C23_TEST_MAIN): Use null_ptr.

ChangeLog
m4/std-gnu23.m4

index 7e3bc85530f5664872e5ed94bfaf51aa24a9f2be..12cc380ebf3b1bf790618c1670acbdcb9c149c7b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       std-gnu23: sync from Autoconf
+       This fixes a problem reported from Bruno Haible in:
+       https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html
+       * m4/std-gnu23.m4 (_AC_C_C23_TEST_MAIN): Use null_ptr.
+
 2024-11-16  Collin Funk  <collin.funk1@gmail.com>
 
        Remove .cvsignore files.
index db48ae52547a68eb9b77f7724de8fc09d4aec9b6..0fe7503bb2232a73b03f10d3c86189ea62e9a1d3 100644 (file)
@@ -1,11 +1,11 @@
 # std-gnu23.m4
-# serial 4
+# serial 5
 
 # Prefer GNU C23 to earlier versions.
 
 # This implementation is taken from GNU Autoconf lib/autoconf/c.m4
-# commit 93b3d33c1d09b05601b240bf17b83f50ac4a148b
-# dated Thu Sep 5 18:19:36 2024 -0700
+# commit d5d33c599143f6c36406eb860571fced1da49ea4
+# dated Sun Nov 17 09:00:49 2024 -0800
 # This implementation will be obsolete once we can assume Autoconf 2.73
 # or later is installed everywhere a Gnulib program might be developed.
 
@@ -481,6 +481,7 @@ ac_c_conftest_c23_main='
         goto label_at_end_of_block;
     label_at_end_of_block:
   }
+  ok |= !null_pointer;
   ok |= two != three;
 '
 ]])])
@@ -717,6 +718,7 @@ AS_IF([test "x$ac_cv_prog_cc_c$1" = xno],
   ac_prog_cc_stdc=c$1])])
 ])
 
+
 # _AC_PROG_CC_STDC_EDITION
 # ------------------------
 # Detect the most recent edition of the ISO C standard that is