diff options
author | Fangrui Song <i@maskray.me> | 2024-03-15 10:50:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 10:50:21 -0700 |
commit | cd071253c70b3b37a0b9d113709ca9d49a83007e (patch) | |
tree | 449b7d9c41db8fcfbfad6e5b651474a067888f84 /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | b8db3e7c7dddaa14c314a05b92c9fa3df38734e4 (diff) | |
download | llvm-cd071253c70b3b37a0b9d113709ca9d49a83007e.zip llvm-cd071253c70b3b37a0b9d113709ca9d49a83007e.tar.gz llvm-cd071253c70b3b37a0b9d113709ca9d49a83007e.tar.bz2 |
[Driver] Don't alias -mstrict-align to -mno-unaligned-access
GCC ports only supports one of the options, with -mstrict-align
preferred by newer ports. They reject adding -m[no-]unaligned-access to
newer ports that use -m[no-]strict-align.
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111555).
We should not support aliases, either. Since the behavior has been
long-time for ARM (a146a48349c965932dcf304ffb8155b25307f245), support
both forms for ARM for now but remove -m[no-]unaligned-access for
RISC-V/LoongArch (see also
https://github.com/riscv-non-isa/riscv-c-api-doc/pull/62).
While here, add TargetSpecific to ensure errors on unsupported targets
(https://reviews.llvm.org/D151590) and remove unneeded CC1 options.
Pull Request: https://github.com/llvm/llvm-project/pull/85350
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions