[openssl] master update

Richard Levitte levitte at openssl.org
Tue Mar 19 06:37:14 UTC 2019


The branch master has been updated
       via  1b9c5f2e2f283a3b12d02a89c11b8e8d97bc6312 (commit)
      from  2864df8f9d3264e19b49a246e272fb513f4c1be3 (commit)


- Log -----------------------------------------------------------------
commit 1b9c5f2e2f283a3b12d02a89c11b8e8d97bc6312
Author: Hua Zhang <hua.zhang1974 at hotmail.com>
Date:   Wed Mar 13 14:28:44 2019 +0800

    Fix compiling error for mips32r6 and mips64r6
    
    There are some compiling errors for mips32r6 and mips64r6:
    
    crypto/bn/bn-mips.S:56: Error: opcode not supported on this processor: mips2 (mips2) `mulu $1,$12,$7'
    crypto/mips_arch.h: Assembler messages:
    crypto/mips_arch.h:15: Error: junk at end of line, first unrecognized character is `&'
    
    Signed-off-by: Hua Zhang <hua.zhang1974 at hotmail.com>
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8464)

-----------------------------------------------------------------------

Summary of changes:
 crypto/bn/asm/mips.pl | 2 +-
 crypto/mips_arch.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/crypto/bn/asm/mips.pl b/crypto/bn/asm/mips.pl
index 51a4b5f..bff624d 100644
--- a/crypto/bn/asm/mips.pl
+++ b/crypto/bn/asm/mips.pl
@@ -88,7 +88,7 @@ if ($flavour =~ /64|n32/i) {
 	$SZREG=4;
 	$REG_S="sw";
 	$REG_L="lw";
-	$code=".set	mips2\n";
+	$code="#if !(defined (__mips_isa_rev) && (__mips_isa_rev >= 6))\n.set     mips2\n#endif\n";
 }
 
 # Below is N32/64 register layout used in the original module.
diff --git a/crypto/mips_arch.h b/crypto/mips_arch.h
index 0ac3bfa..df4ff7a 100644
--- a/crypto/mips_arch.h
+++ b/crypto/mips_arch.h
@@ -11,7 +11,7 @@
 # define __MIPS_ARCH_H__
 
 # if (defined(__mips_smartmips) || defined(_MIPS_ARCH_MIPS32R3) || \
-      defined(_MIPS_ARCH_MIPS32R5) || defined(_MIPS_ARCH_MIPS32R6))
+      defined(_MIPS_ARCH_MIPS32R5) || defined(_MIPS_ARCH_MIPS32R6)) \
       && !defined(_MIPS_ARCH_MIPS32R2)
 #  define _MIPS_ARCH_MIPS32R2
 # endif


More information about the openssl-commits mailing list