[PATCH 2/3] poly1305: fix compiling on i386 gcc-4.7
Jussi Kivilinna
jussi.kivilinna at iki.fi
Wed Mar 3 18:07:04 CET 2021
* cipher/poly1305.c [__i386__]: Limit i386 variant of ADD_1305_32 to
GCC-5 or newer.
--
Reported-by: Horst Wente <horst.wente at posteo.de>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/poly1305.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cipher/poly1305.c b/cipher/poly1305.c
index 6cb4d2b7..da8f4601 100644
--- a/cipher/poly1305.c
+++ b/cipher/poly1305.c
@@ -310,7 +310,8 @@ static unsigned int poly1305_final (poly1305_context_t *ctx,
#endif /* HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS */
-#if defined (__i386__) && __GNUC__ >= 4
+#if defined (__i386__) && __GNUC__ >= 5
+/* Note: ADD_1305_32 below does not compile on GCC-4.7 */
/* A += B (i386) */
#define ADD_1305_32(A4, A3, A2, A1, A0, B4, B3, B2, B1, B0) \
--
2.27.0
More information about the Gcrypt-devel
mailing list