aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2025-01-18 22:33:25 -0800
committerPaul Eggert2025-01-18 23:28:10 -0800
commit866cb87185d9096b248f42c11ee03c19ed7c7598 (patch)
tree930412156c6bfc7b291cf76f07fe4ac865129858
parentd65f727ab401a8dfe11de7837ecee6661a113fea (diff)
downloademacs-866cb87185d9096b248f42c11ee03c19ed7c7598.tar.gz
emacs-866cb87185d9096b248f42c11ee03c19ed7c7598.zip
Update from Gnulib by running admin/merge-gnulib
-rw-r--r--m4/stdalign.m411
1 files changed, 7 insertions, 4 deletions
diff --git a/m4/stdalign.m4 b/m4/stdalign.m4
index bb2d1555373..885feafdd8b 100644
--- a/m4/stdalign.m4
+++ b/m4/stdalign.m4
@@ -1,5 +1,5 @@
1# stdalign.m4 1# stdalign.m4
2# serial 1 2# serial 3
3dnl Copyright 2011-2025 Free Software Foundation, Inc. 3dnl Copyright 2011-2025 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
@@ -104,11 +104,13 @@ AC_DEFUN([gl_ALIGNASOF],
104 104
105/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023 105/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
106 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. 106 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.
107 clang versions < 8.0.0 have the same bug. */ 107 clang versions < 8.0.0 have the same bug.
108 IBM XL C V16.1.0 cc (non-clang) has the same bug. */
108# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \ 109# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
109 || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \ 110 || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \
110 && !defined __clang__) \ 111 && !defined __clang__) \
111 || (defined __clang__ && __clang_major__ < 8)) 112 || (defined __clang__ && __clang_major__ < 8) \
113 || defined __xlC__)
112# undef/**/_Alignof 114# undef/**/_Alignof
113# ifdef __cplusplus 115# ifdef __cplusplus
114# if (201103 <= __cplusplus || defined _MSC_VER) 116# if (201103 <= __cplusplus || defined _MSC_VER)
@@ -179,7 +181,8 @@ AC_DEFUN([gl_ALIGNASOF],
179# if ((defined _Alignas \ 181# if ((defined _Alignas \
180 && !(defined __cplusplus \ 182 && !(defined __cplusplus \
181 && (201103 <= __cplusplus || defined _MSC_VER))) \ 183 && (201103 <= __cplusplus || defined _MSC_VER))) \
182 || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__)) 184 || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__ \
185 && !defined __xlC__))
183# define alignas _Alignas 186# define alignas _Alignas
184# endif 187# endif
185# endif 188# endif