]> Savannah Git Hosting - gnulib.git/commitdiff
An update for clang >= 16.
authorBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 20:20:32 +0000 (22:20 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 29 Jul 2024 20:20:32 +0000 (22:20 +0200)
* m4/gnulib-common.m4 (gl_COMMON_BODY): Don't define
_GL_BRACKET_BEFORE_ATTRIBUTE with clang++ 16 or newer.

ChangeLog
m4/gnulib-common.m4

index 0ca76f8d40ca175a35ff0f5df40ba7d0568544ca..b7ee2430dddbab0bd4ca5c0a3ae4e7132df7fa6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-07-29  Bruno Haible  <bruno@clisp.org>
+
+       An update for clang >= 16.
+       * m4/gnulib-common.m4 (gl_COMMON_BODY): Don't define
+       _GL_BRACKET_BEFORE_ATTRIBUTE with clang++ 16 or newer.
+
 2024-07-29  Bruno Haible  <bruno@clisp.org>
 
        Fix misspelling of __clang_major__.
index 71d90dfe7147687f04af7b605e99003f6de6f488..9602c705e1f1ab88e7a1f8c7f2aaafc609887f99 100644 (file)
@@ -1,5 +1,5 @@
 # gnulib-common.m4
-# serial 96
+# serial 97
 dnl Copyright (C) 2007-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -139,7 +139,7 @@ AC_DEFUN([gl_COMMON_BODY], [
    various _GL_ATTRIBUTE_* can be cumulated on the same declaration in any
    order.  */
 #ifdef __cplusplus
-# if defined __clang__
+# if defined __clang__ && __clang_major__ < 16
 #  define _GL_BRACKET_BEFORE_ATTRIBUTE 1
 # endif
 #else