Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107135248
D33166.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
962 B
Referenced Files
None
Subscribers
None
D33166.diff
View Options
diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk
--- a/share/mk/bsd.compiler.mk
+++ b/share/mk/bsd.compiler.mk
@@ -25,6 +25,7 @@
# - retpoline: supports the retpoline speculative execution vulnerability
# mitigation.
# - init-all: supports stack variable initialization.
+# - aarch64-sha512: supports the AArch64 sha512 intrinsic functions.
#
# When bootstrapping on macOS, 'apple-clang' will be set in COMPILER_FEATURES
# to differentiate Apple's version of Clang. Apple Clang uses a different
@@ -255,6 +256,13 @@
${X_}COMPILER_FEATURES+= fileprefixmap
.endif
+.if (${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 130000) || \
+ (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 90000)
+# AArch64 sha512 intrinsics are supported (and have been tested) in
+# clang 13 and gcc 9.
+${X_}COMPILER_FEATURES+= aarch64-sha512
+.endif
+
.else
# Use CC's values
X_COMPILER_TYPE= ${COMPILER_TYPE}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:20 PM (20 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15752794
Default Alt Text
D33166.diff (962 B)
Attached To
Mode
D33166: Add an arm64 sha512 feature check
Attached
Detach File
Event Timeline
Log In to Comment