Re: C23 support in Autoconf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024-04-30 11:24, Alan Coopersmith wrote:
the biggest source of problems was not function prototypes,
but the change of "true" and "false" to no longer be acceptable lvalues,
and of "bool" to be a builtin type.

Thanks for mentioning that, as I hadn't run into that problem. I installed the attached.
From 76ac2c1d735a3cc1646b452d38633ec1c6a3ce0d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@xxxxxxxxxxx>
Date: Tue, 30 Apr 2024 11:41:36 -0700
Subject: [PATCH] Mention C keywords in NEWS

Thanks to Alan Coopersmith for mentioning this in:
https://lists.gnu.org/r/autoconf/2024-04/msg00011.html
---
 NEWS | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 952a7cc6..60c6dcdd 100644
--- a/NEWS
+++ b/NEWS
@@ -5,8 +5,10 @@ GNU Autoconf NEWS - User visible changes.
 ** Backward incompatibilities
 
 *** AC_PROG_CC now prefers C23 if available.
-  C23 has removed old-style (K&R) function definitions/declarations.
-  Old-style functions should be updated to use prototypes.
+  Older code may need to be updated, as C23 has removed old-style
+  (K&R) function definitions and declarations, and has new keywords
+  alignas, alignof, bool, constexpr, false, nullptr, static_assert,
+  thread_local, typeof, typeof_unqual, true.
 
 *** AC_PROG_CC no longer tests for VLAs, or whether __STDC__ is defined.
   This ports better to MSVC, which does not support variable length
-- 
2.44.0


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux