+2024-03-29 Paul Eggert <eggert@cs.ucla.edu>
+
+ intprops: pacify GCC < 10 -Wsign-compare
+ Problem reported by Martin Dorey in:
+ https://savannah.gnu.org/bugs/index.php?65537
+ * lib/intprops-internal.h (_GL_INT_MULTIPLY_WRAPV):
+ When working around GCC bug 91450, pacify -Wsign-compare by
+ casting 0 to the result type.
+
2024-03-29 Bruno Haible <bruno@clisp.org>
gnulib-tool: Use bold output on Linux, NetBSD, OpenBSD, OmniOS consoles.
/* Work around GCC bug 91450. */
# define _GL_INT_MULTIPLY_WRAPV(a, b, r) \
((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && _GL_EXPR_SIGNED (a) && _GL_EXPR_SIGNED (b) \
- && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \
+ && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, \
+ (__typeof__ (*(r))) 0, \
+ (__typeof__ (*(r))) -1)) \
? ((void) __builtin_mul_overflow (a, b, r), 1) \
: __builtin_mul_overflow (a, b, r))
# endif