[clang] clang driver: enable fast unaligned access for Android on RISCV64 (PR #85704)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 19 10:03:36 PDT 2024
================
@@ -167,6 +167,10 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
Features.push_back("-relax");
}
+ // Android requires fast unaligned access on RISCV64.
----------------
hiraditya wrote:
```
./bin/clang -mabi=lp64d --target=riscv64-linux-android -### -fsyntax-only ../clang/test/Driver/riscv-features.c -mno-strict-align
```
prints only one `"-target-feature" "+fast-unaligned-access"`
https://github.com/llvm/llvm-project/pull/85704
More information about the cfe-commits
mailing list