[clang] [Driver][Sparc] Default to -mcpu=v9 for 32-bit Linux/sparc64 (PR #109278)
John Paul Adrian Glaubitz via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 06:20:58 PDT 2024
================
@@ -125,7 +126,9 @@ std::string sparc::getSparcTargetCPU(const Driver &D, const ArgList &Args,
return std::string(CPUName);
}
- if (Triple.getArch() == llvm::Triple::sparc && Triple.isOSSolaris())
+ Distro Dist(D.getVFS(), Triple);
+ if (Triple.getArch() == llvm::Triple::sparc &&
+ (Triple.isOSSolaris() || Dist.IsDebian() || Dist.IsGentoo()))
----------------
glaubitz wrote:
There is the very popular SPARC Leon CPU that is used by ESA among other important customers and that uses V8 as the baseline. And Linux is supported and actively maintained on Leon.
https://github.com/llvm/llvm-project/pull/109278
More information about the cfe-commits
mailing list