[openssl/openssl] a2699c: Resolve assembler complains when including loongar...

zhoumin2 noreply at github.com
Mon Aug 28 08:02:09 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: a2699c422d4dd76184532ba92c1495d75a5b9870
      https://github.com/openssl/openssl/commit/a2699c422d4dd76184532ba92c1495d75a5b9870
  Author: Min Zhou <zhoumin at loongson.cn>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M crypto/loongarch_arch.h

  Log Message:
  -----------
  Resolve assembler complains when including loongarch_arch.h

The assembler will complain when we include loongarch_arch.h in
an assembly file as following:

crypto/loongarch_arch.h: Assembler messages:
crypto/loongarch_arch.h:12: Fatal error: no match insn: extern	unsigned int OPENSSL_loongarch_hwcap_P

So, the sentence of `extern unsigned int OPENSSL_loongarch_hwcap_P`
should be guarded with "#ifndef __ASSEMBLER__".

Fixes #21838.

Signed-off-by: Min Zhou <zhoumin at loongson.cn>

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21839)

(cherry picked from commit 84a0b1b169197e3afdadcdafc9fea65361ff672f)




More information about the openssl-commits mailing list