[PATCH] D130688: [Driver][Sparc] Default to -mcpu=v9 for SparcV8 on Linux
John Paul Adrian Glaubitz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 28 07:41:28 PDT 2022
glaubitz added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Arch/Sparc.cpp:139
+ if (Triple.getArch() == llvm::Triple::sparc &&
+ (Triple.isOSSolaris() || Distro(D.getVFS(), Triple).IsDebian()))
return "v9";
----------------
Can we do it "IsLinux()" instead of "IsDebian()"?
I think Gentoo should profit from this change as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130688/new/
https://reviews.llvm.org/D130688
More information about the cfe-commits
mailing list