From: Niels Möller Date: Tue, 2 Feb 2021 17:05:23 +0000 (+0100) Subject: aarch64: Use .arch armv8-a+crypto directive. X-Git-Tag: nettle_3.8_release_20220602~141^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0489825ec047835a2ad1e2d3c9ba3570783f5739;p=thirdparty%2Fnettle.git aarch64: Use .arch armv8-a+crypto directive. --- diff --git a/ChangeLog b/ChangeLog index 0f695415..fba49192 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-02-02 Niels Möller + + * 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 * arm64/v8/gcm-hash.asm: New file, contributed by Maamoun TK and diff --git a/arm64/v8/gcm-hash.asm b/arm64/v8/gcm-hash.asm index d43c3c50..b77b08d6 100644 --- a/arm64/v8/gcm-hash.asm +++ b/arm64/v8/gcm-hash.asm @@ -31,6 +31,7 @@ ifelse(` ') .file "gcm-hash.asm" +.arch armv8-a+crypto .text diff --git a/configure.ac b/configure.ac index 06505728..33ece246 100644 --- a/configure.ac +++ b/configure.ac @@ -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