* lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
workaround as for GCC versions < 4.9.
+2020-08-20 Bruno Haible <bruno@clisp.org>
+
+ stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
+ * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
+ workaround as for GCC versions < 4.9.
+
2020-08-20 Siddhesh Poyarekar <siddhesh@gotplt.org>
Sync up ProjectQuirks comments and documentation
#undef _Alignof
/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
- <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.
+ clang versions < 8.0.0 have the same bug. */
#if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
|| (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \
- && !defined __clang__))
+ && !defined __clang__) \
+ || (defined __clang__ && __clang_major__ < 8))
# ifdef __cplusplus
# if 201103 <= __cplusplus
# define _Alignof(type) alignof (type)