aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJaedon Shin <jaedon.shin@gmail.com>2015-06-12 18:04:14 +0900
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:59:42 +0200
commitda3527f74de19914e0e5f87a2c006a7d24df6036 (patch)
tree74199c2e29675d9d0d4d02e78ccaef8e48ca7d0a /lib
parent14a2cf71d32c298660f18c3b65dabd6ce8a5a011 (diff)
MPI: MIPS: Fix compilation error with GCC 5.1
This patch fixes mips compilation error: lib/mpi/generic_mpih-mul1.c: In function 'mpihelp_mul_1': lib/mpi/longlong.h:651:2: error: impossible constraint in 'asm' Signed-off-by: Jaedon Shin <jaedon.shin@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/10546/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/mpi/longlong.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mpi/longlong.h b/lib/mpi/longlong.h
index aac511417..a89d04159 100644
--- a/lib/mpi/longlong.h
+++ b/lib/mpi/longlong.h
@@ -639,7 +639,7 @@ do { \
************** MIPS *****************
***************************************/
#if defined(__mips__) && W_TYPE_SIZE == 32
-#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
#define umul_ppmm(w1, w0, u, v) \
do { \
UDItype __ll = (UDItype)(u) * (v); \
@@ -671,7 +671,7 @@ do { \
************** MIPS/64 **************
***************************************/
#if (defined(__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 4
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
#define umul_ppmm(w1, w0, u, v) \
do { \
typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \