summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch')
-rw-r--r--meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch b/meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch
new file mode 100644
index 0000000000..7308f8fc3e
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/0001-bn-bn_lcl.h-fix-MIPS-specific-gcc-version-check.patch
@@ -0,0 +1,30 @@
1From 60c268b21ac81cc6b1af5c5470282a613b96f6fd Mon Sep 17 00:00:00 2001
2From: Andy Polyakov <appro@openssl.org>
3Date: Mon, 25 May 2015 10:17:14 +0200
4Subject: [PATCH] bn/bn_lcl.h: fix MIPS-specific gcc version check.
5
6RT#3859
7
8Reviewed-by: Tim Hudson <tjh@openssl.org>
9---
10Upstream-Status: Backport
11
12 crypto/bn/bn_lcl.h | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h
16index 196df7e..b9d124a 100644
17--- a/crypto/bn/bn_lcl.h
18+++ b/crypto/bn/bn_lcl.h
19@@ -443,7 +443,7 @@ unsigned __int64 _umul128(unsigned __int64 a, unsigned __int64 b,
20 # endif
21 # elif defined(__mips) && (defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG))
22 # if defined(__GNUC__) && __GNUC__>=2
23-# if __GNUC__>=4 && __GNUC_MINOR__>=4
24+# if __GNUC__>4 || (__GNUC__>=4 && __GNUC_MINOR__>=4)
25 /* "h" constraint is no more since 4.4 */
26 # define BN_UMULT_HIGH(a,b) (((__uint128_t)(a)*(b))>>64)
27 # define BN_UMULT_LOHI(low,high,a,b) ({ \
28--
292.1.4
30