[clang] [Driver][Sparc] Default to -mcpu=v9 for 32-bit Linux/sparc64 (PR #109278)
Rainer Orth via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 20 00:39:00 PDT 2024
rorth wrote:
> We try to restrict distribution differences to things like default linker options and library paths. Affecting `-mcpu=` seems very unintuitive. There are many Debian derivatives. It's weird that Debian uses -mcpu=v9 while others use -mcpu=v8. We should not increase `IsDebian` or `IsGentoo` use.
Ah, thanks. That simplifies things a lot.
> If -mcpu=v9 seems the right thing for the majority of configurations, we can bump -mcpu=v9 for all Linux and ask other, older systems to use https://clang.llvm.org/docs/UsersManual.html#configuration-files to specify `-mcpu=v8`.
I'd been operating under the assumption that `clang` should work out of the box on either kind of distro. I'll update the patch accordingly and add a release notes entry about the change.
https://github.com/llvm/llvm-project/pull/109278
More information about the cfe-commits
mailing list