[PATCH 1/3] cipher-gcm-intel-pclmul: fix compiling with i386 gcc-4.7

Jussi Kivilinna jussi.kivilinna at iki.fi
Wed Mar 3 18:07:03 CET 2021


* cipher/cipher-gcm-intel-pclmul.c (gcm_lsh): Pass '*pconst' instead of
'pconst' to asm block.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/cipher-gcm-intel-pclmul.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/cipher-gcm-intel-pclmul.c b/cipher/cipher-gcm-intel-pclmul.c
index 28165c65..334c89cd 100644
--- a/cipher/cipher-gcm-intel-pclmul.c
+++ b/cipher/cipher-gcm-intel-pclmul.c
@@ -397,7 +397,7 @@ static ASM_FUNC_ATTR_INLINE void gcm_lsh(void *h, unsigned int hoffs)
                 "pxor %%xmm4, %%xmm2\n\t"
                 "movdqu %%xmm2, (%[h])\n\t"
                 :
-                : [pconst] "m" (pconst),
+                : [pconst] "m" (*pconst),
                   [h] "r" ((byte *)h + hoffs)
                 : "memory" );
 }
-- 
2.27.0




More information about the Gcrypt-devel mailing list