[PATCH] gas: Default to V8+ on 32-bit Solaris/SPARC
Jose E. Marchesi
jose.marchesi@oracle.com
Mon Sep 29 11:05:30 GMT 2025
Hello Rainer.
This is OK.
Thanks.
> While compilers default to v8plus on 32-bit Solaris/SPARC (gcc at least
> since 4.4 in 2009, cc since at least Stdio 9 in 2010), gas still uses a
> sparclite default. While this doesn't cause issue for gcc (it passes
> -Av8plus as necessary), it repeatedly lead to problems in the testsuite
> which has to be sprinkled with setting ASFLAGS accordingly since gas cannot
> assemble the gcc output by default.
>
> This patch switches the default to v8plus on Solaris to match gcc.
> I had to introduce a new arch value, v8plus-32, matching v9-64, to allow
> for this.
>
> I cannot reliably tell if other SPARC targets are similarly affected, so
> this patch restricts the change to Solaris.
>
> Tested on sparc-sun-solaris2.11 and sparcv9-sun-solaris2.11.
>
> Rainer
More information about the Binutils
mailing list