[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
From: |
Paul Eggert |
Subject: |
[PATCH] intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+ |
Date: |
Fri, 22 Nov 2019 17:34:55 -0800 |
* 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 <address@hidden>
+
+ 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 <address@hidden>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+,
Paul Eggert <=