* lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x, remove workaround for GCC bug 91450 as the bug should be fixed there too. --- ChangeLog | 7 +++++++ lib/intprops.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog index 3f77be228..47b079b82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-11-22 Paul Eggert <egg...@cs.ucla.edu> + + intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+ + * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x, + remove workaround for GCC bug 91450 as the bug should be fixed + there too. + 2019-11-21 Bruno Haible <br...@clisp.org> Disable many _GL_CXXALIASWARN on all platforms other than glibc systems. diff --git a/lib/intprops.h b/lib/intprops.h index d0c2d706d..1d0fb25b2 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -373,7 +373,8 @@ _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) #endif #if _GL_HAS_BUILTIN_MUL_OVERFLOW -# if 9 < __GNUC__ + (3 <= __GNUC_MINOR__) +# if (9 < __GNUC__ + (3 <= __GNUC_MINOR__) \ + || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) # define INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r) # else /* Work around GCC bug 91450. */ -- 2.23.0