Re: [PATCH] Default to -mcpu=ultrasparc3 on Solaris/SPARC

2025-07-22 Thread Eric Botcazou
> Bootstrapped on sparc-sun-solaris2.11 and sparcv9-sun-solaris2.11 with > as/ld, gas/ld, and gas/gld configurations. > > There are currently two regressions exposed by this patch (PRs 121191 > and 121192), which are only present in gcc 16 resp. 15/16. > > There's one small caveat: while Solaris

[PATCH] Default to -mcpu=ultrasparc3 on Solaris/SPARC

2025-07-22 Thread Rainer Orth
Prompted by the discussions around a recent clang bug, I realized that gcc still defaults to -mcpu=v9 on Solaris/SPARC. This is an oversight since the Oracle Studio 12.6 cc, released in 2017, already defaults to -xarch=sparcvis2, the equivalent of -mcpu=ultrasparc3. Besides, both the 32 and 64-bi