summaryrefslogtreecommitdiff
path: root/openssl/openssl-0.9.8o-clang.patch
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-03-28 14:35:11 +0000
committerHerbert Dürr <hdu@apache.org>2013-03-28 14:35:11 +0000
commit69415c1c8396db0c9ecbd5e5794485b16bcbad5b (patch)
tree67ba557153b372917e17979adf00a8c399adb7e4 /openssl/openssl-0.9.8o-clang.patch
parent22a01f66b7dea315583f5145df61e9462c34195d (diff)
fix an inline asm input-output bitwidth mismatch
Clang rightfully rejects it, so we have to use the cast. Upstream has a similar fix for its OpenSSL-fips-2_0* tags.
Notes
Notes: prefer: 8f29699cd1723bd8b8acc25033708f9777576d6d
Diffstat (limited to 'openssl/openssl-0.9.8o-clang.patch')
-rw-r--r--openssl/openssl-0.9.8o-clang.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/openssl/openssl-0.9.8o-clang.patch b/openssl/openssl-0.9.8o-clang.patch
new file mode 100644
index 000000000000..8c0b21a0447e
--- /dev/null
+++ b/openssl/openssl-0.9.8o-clang.patch
@@ -0,0 +1,11 @@
+--- misc/openssl-0.9.8o/crypto/md32_common.h 2010-03-29 13:23:11.000000000 +0200
++++ misc/build/openssl-0.9.8o/crypto/md32_common.h 2013-03-28 15:47:56.541077176 +0100
+@@ -165,7 +165,7 @@
+ asm ( \
+ "roll %1,%0" \
+ : "=r"(ret) \
+- : "I"(n), "0"(a) \
++ : "I"(n), "0"((unsigned int)(a)) \
+ : "cc"); \
+ ret; \
+ })