From 378d2e5e5fe4b892ac3503ab5313126b1b63341e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 22 Nov 2019 17:32:57 -0800 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ lib/intprops.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3f77be228d..47b079b825 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-11-22 Paul Eggert + + 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 Disable many _GL_CXXALIASWARN on all platforms other than glibc systems. diff --git a/lib/intprops.h b/lib/intprops.h index d0c2d706d9..1d0fb25b28 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.39.5