+2020-08-23 Bruno Haible <bruno@clisp.org>
+
+ libc-config: Improve comments.
+ * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
+ cannot use clang's __diagnose_if__ here.
+
2020-08-22 Bruno Haible <bruno@clisp.org>
verify: Do use __builtin_assume on clang.
# define __warnattr(msg) __attribute__((__warning__ (msg)))
# define __errordecl(name, msg) \
extern void name (void) __attribute__((__error__ (msg)))
-#elif __glibc_clang_has_attribute (__diagnose_if__) && 0 /* fails on Fedora 31 with Clang 9. */
+#elif __glibc_clang_has_attribute (__diagnose_if__) && 0
+/* These definitions are not enabled, because they produce bogus warnings
+ in the glibc Fortify functions. These functions are written in a style
+ that works with GCC. In order to work with clang, these functions would
+ need to be modified. */
# define __warndecl(name, msg) \
extern void name (void) __attribute__((__diagnose_if__ (1, msg, "warning")))
# define __warnattr(msg) __attribute__((__diagnose_if__ (1, msg, "warning")))