Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-04-20 22:20:37 +0300
committerAdam Langley <agl@google.com>2015-05-05 03:28:03 +0300
commita91fd063cf87b905a4d3b06387727deb4a7016d0 (patch)
tree9cbf9c1c519a6cbc2fe0a863c1b5dd7d7ec0f825 /crypto/modes
parent041e4dd5e240b635f339b864c4f5bfa164d06246 (diff)
Don't use .arch in aarch64 asm with Clang.
Clang (3.6, at least) doesn't like .arch when its internal as is used. Instead, one has to pass -march=armv8-a+crypto on the command line. Change-Id: Ifc5b57fbebd0eb53658481b0a0c111e808c81d93 Reviewed-on: https://boringssl-review.googlesource.com/4411 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/modes')
-rw-r--r--crypto/modes/asm/ghashv8-armx.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/modes/asm/ghashv8-armx.pl b/crypto/modes/asm/ghashv8-armx.pl
index 3750d251..686951fd 100644
--- a/crypto/modes/asm/ghashv8-armx.pl
+++ b/crypto/modes/asm/ghashv8-armx.pl
@@ -58,7 +58,11 @@ $code=<<___;
.text
___
-$code.=".arch armv8-a+crypto\n" if ($flavour =~ /64/);
+$code.=<<___ if ($flavour =~ /64/);
+#if !defined(__clang__)
+.arch armv8-a+crypto
+#endif
+___
$code.=".fpu neon\n.code 32\n" if ($flavour !~ /64/);
################################################################################