+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>
attribute: Work around compiler bug of Oracle cc 12.6.
/* intprops-internal.h -- properties of integer types not visible to users
- Copyright (C) 2001-2023 Free Software Foundation, Inc.
+ Copyright (C) 2001-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
/* 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