Skip to content

Commit dc517fe

Browse files
committed
Old GCC versions required a CPU target for aarch64 SHA3 extensions
That has been fixed in gcc 14. On older versions, add arch=armv8.2-a
1 parent 8374668 commit dc517fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/aegis128l/aegis128l_neon_sha3.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
# pragma clang attribute push(__attribute__((target("neon,crypto,aes,sha3"))), \
2424
apply_to = function)
2525
# elif defined(__GNUC__)
26-
# pragma GCC target("+simd+crypto+sha3")
26+
# if __GNUC__ < 14
27+
# pragma GCC target("arch=armv8.2-a+simd+crypto+sha3")
28+
# else
29+
# pragma GCC target("+simd+crypto+sha3")
30+
# endif
2731
# endif
2832

2933
# define AES_BLOCK_LENGTH 16

0 commit comments

Comments
 (0)