Merge "riscv64: assume fast unaligned access." into main am: 3fb5c15adf
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2734373 Change-Id: I05345473ece976678692608c5cac4b22412e5424 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -27,6 +27,9 @@ var (
|
|||||||
"-Werror=implicit-function-declaration",
|
"-Werror=implicit-function-declaration",
|
||||||
"-fno-emulated-tls",
|
"-fno-emulated-tls",
|
||||||
"-march=rv64gcv_zba_zbb_zbs",
|
"-march=rv64gcv_zba_zbb_zbs",
|
||||||
|
// Equivalent to "-munaligned-access", but our clang doesn't have that yet.
|
||||||
|
"-Xclang -target-feature -Xclang +unaligned-scalar-mem",
|
||||||
|
"-Xclang -target-feature -Xclang +unaligned-vector-mem",
|
||||||
}
|
}
|
||||||
|
|
||||||
riscv64ArchVariantCflags = map[string][]string{}
|
riscv64ArchVariantCflags = map[string][]string{}
|
||||||
@@ -34,6 +37,9 @@ var (
|
|||||||
riscv64Ldflags = []string{
|
riscv64Ldflags = []string{
|
||||||
"-Wl,--hash-style=gnu",
|
"-Wl,--hash-style=gnu",
|
||||||
"-march=rv64gcv_zba_zbb_zbs",
|
"-march=rv64gcv_zba_zbb_zbs",
|
||||||
|
// Equivalent to "-munaligned-access", but our clang doesn't have that yet.
|
||||||
|
"-Xclang -target-feature -Xclang +unaligned-scalar-mem",
|
||||||
|
"-Xclang -target-feature -Xclang +unaligned-vector-mem",
|
||||||
}
|
}
|
||||||
|
|
||||||
riscv64Lldflags = append(riscv64Ldflags,
|
riscv64Lldflags = append(riscv64Ldflags,
|
||||||
|
Reference in New Issue
Block a user