[flang-commits] [clang] [flang] [SPARC][Driver] Move feature mode selection to Arch/Sparc.cpp (PR #149652)
Rainer Orth via flang-commits
flang-commits at lists.llvm.org
Sun Jul 20 03:02:01 PDT 2025
rorth wrote:
I've now tested the (original version of) the patch on both `sparc64-unknown-linux-gnu` and `sparcv9-sun-solaris2.11`. The Linux/sparc64 build failure is gone, no regressions on either target.
Btw., prompted by this I've discovered that GCC's `-mcpu=v9` default on Solaris/SPARC is way outdated: the Oracle Studio compilers default to `-xarch=sparcvis2` since version 12.6 (from 2017 no less), which is `-mcpu=ultrasparc3` in `gcc`/`clang` lingo. The 32 and 64-bit `libc.so.1` match this. I'll update the `gcc` default after testing, and provide a similar patch for `clang` afterwards. Thanks for pointing this out!
https://github.com/llvm/llvm-project/pull/149652
More information about the flang-commits
mailing list