Only pass it +unaligned-scalar-mem/-unaligned-scalar-mem if the
user has passed one of the alignment options.
This allows us to add unaligned-scalar-mem as a feature on CPUs
that support it.
Paths
| Differential D159145
[RISCV] Don't add -unaligned-scalar-mem to target features by default. ClosedPublic Authored by craig.topper on Aug 29 2023, 3:32 PM.
Details Summary Only pass it +unaligned-scalar-mem/-unaligned-scalar-mem if the This allows us to add unaligned-scalar-mem as a feature on CPUs
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 29 2023, 3:33 PM
This revision is now accepted and ready to land.Aug 30 2023, 8:57 AM Closed by commit rGc9db799dda69: [RISCV] Don't add -unaligned-scalar-mem to target features by default. (authored by craig.topper). · Explain WhyAug 30 2023, 9:52 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 554763 clang/lib/Driver/ToolChains/Arch/RISCV.cpp
clang/test/Driver/riscv-default-features.c
clang/test/Driver/riscv-features.c
|