]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
aarch64: Use .arch armv8-a+crypto directive.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 2 Feb 2021 17:05:23 +0000 (18:05 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 2 Feb 2021 17:05:23 +0000 (18:05 +0100)
ChangeLog
arm64/v8/gcm-hash.asm
configure.ac

index 0f69541527fffa0868b6c566ab7a35bc58cd2c28..fba49192f1eb3ed44a2b6586d54b44c6cca0382f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2021-02-02  Niels Möller  <nisse@lysator.liu.se>
+
+       * arm64/v8/gcm-hash.asm: Add ".arch armv8-a+crypto" directive.
+       Supported by both GNU as and clang (the latter at least from
+       version 3.9.1).
+       * configure.ac: Don't add -march=armv8-a+crypto to CFLAGS.
+
 2021-01-31  Niels Möller  <nisse@lysator.liu.se>
 
        * arm64/v8/gcm-hash.asm: New file, contributed by Maamoun TK and
index d43c3c50502eebb37f21595f4d52ec31c9ec3d1e..b77b08d6f3cacbf4b1a42592cdad3779d8797c51 100644 (file)
@@ -31,6 +31,7 @@ ifelse(`
 ')
 
 .file "gcm-hash.asm"
+.arch armv8-a+crypto
 
 .text
 
index 06505728e555eeb4f5e59ecd2ee2ebae7b493b8b..33ece246667ad07dae28e8b1021c733347213dbe 100644 (file)
@@ -478,7 +478,6 @@ if test "x$enable_assembler" = xyes ; then
       if test "$ABI" = 64 ; then
        asm_path=arm64
        if test "$enable_armv8_a_crypto" = yes ; then
-          CFLAGS="$CFLAGS -march=armv8-a+crypto"
           asm_path="arm64/v8 $asm_path"
         fi
       else