summaryrefslogtreecommitdiffstats
path: root/gl/m4/stdalign.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/stdalign.m4')
-rw-r--r--gl/m4/stdalign.m410
1 files changed, 5 insertions, 5 deletions
diff --git a/gl/m4/stdalign.m4 b/gl/m4/stdalign.m4
index 885feafd..7177d034 100644
--- a/gl/m4/stdalign.m4
+++ b/gl/m4/stdalign.m4
@@ -1,6 +1,6 @@
1# stdalign.m4 1# stdalign.m4
2# serial 3 2# serial 3
3dnl Copyright 2011-2025 Free Software Foundation, Inc. 3dnl Copyright 2011-2026 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,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -30,7 +30,7 @@ AC_DEFUN([gl_ALIGNASOF],
30 30
31 /* Test that alignof yields a result consistent with offsetof. 31 /* Test that alignof yields a result consistent with offsetof.
32 This catches GCC bug 52023 32 This catches GCC bug 52023
33 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 33 <https://gcc.gnu.org/PR52023>. */
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 template <class t> struct alignof_helper { char a; t b; }; 35 template <class t> struct alignof_helper { char a; t b; };
36 # define ao(type) offsetof (alignof_helper<type>, b) 36 # define ao(type) offsetof (alignof_helper<type>, b)
@@ -82,8 +82,8 @@ AC_DEFUN([gl_ALIGNASOF],
82 82
83 References: 83 References:
84 ISO C23 (latest free draft 84 ISO C23 (latest free draft
85 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf>) 85 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf>)
86 sections 6.5.3.4, 6.7.5, 7.15. 86 sections 6.2.8, 6.7.6.
87 C++11 (latest free draft 87 C++11 (latest free draft
88 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf>) 88 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf>)
89 section 18.10. */ 89 section 18.10. */
@@ -103,7 +103,7 @@ AC_DEFUN([gl_ALIGNASOF],
103 want to be portable to HP-UX 10.20 cc and AIX 3.2.5 xlc. */ 103 want to be portable to HP-UX 10.20 cc and AIX 3.2.5 xlc. */
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/PR52023>.
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 IBM XL C V16.1.0 cc (non-clang) has the same bug. */
109# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \ 109# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \