File bswap-s390x-fix.diff of Package compat-openssl098.29129

Index: crypto/md32_common.h
===================================================================
--- crypto/md32_common.h.orig	2007-11-11 14:34:05.000000000 +0100
+++ crypto/md32_common.h	2010-02-18 16:41:26.000000000 +0100
@@ -241,11 +241,11 @@
 #ifndef PEDANTIC
 # if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
 #  if defined(__s390x__)
-#   define HOST_c2l(c,l)	({ asm ("lrv	%0,0(%1)"		\
-					:"=r"(l) : "r"(c));		\
+#   define HOST_c2l(c,l)	({ asm ("lrv	%0,%1"		\
+					:"=d" (l) : "m" (*(unsigned int*)c)); \
 				   (c)+=4; (l);				})
-#   define HOST_l2c(l,c)	({ asm ("strv	%0,0(%1)"		\
-					: : "r"(l),"r"(c) : "memory");	\
+#   define HOST_l2c(l,c)	({ asm ("strv	%1,%0"		\
+					: "=m" (*(unsigned int*)c) : "d" (l)); \
 				   (c)+=4; (l);				})
 #  endif
 # endif
openSUSE Build Service is sponsored by