[csw-maintainers] GCC 4.7 vs sparcv8
Dagobert Michelsen
dam at opencsw.org
Wed Mar 28 10:15:30 CEST 2012
Hi Maciej,
Am 28.03.2012 um 09:38 schrieb Maciej (Matchek) Bliziński:
> I've spent some time building GCC-4.7 and discovered that it contains sparcv8+ assembler and doesn't build when you try to set the architecture to be sparcv8. A simple solution is to build for sparcv8+ as the base achitecture. With GCC it's a bigger deal that with other software, because once we build libgcc_s.so.1 for sparcv8+, anything built with GCC will no longer work on sparcv8. I've already compiled libgmp for sparcv8+, but this only causes the compiler itself not work on sparcv8. The change I'm talking about here, goes deeper, and affects anything built with GCC.
>
> For me, who joined the project in 2009 and worked with modern hardware, it's a rather abstract idea to support hardware that was last built in 1996. I've never worked with such hardware and it's hard for me to assess how important it is to keep this compatibility. I'm considering following options:
>
> - using sparcv8+ as the base architecture for GCC and breaking the compatibility
> - not building GCC-4.7 for Solaris 9; we've agreed on sparcv8+ for Solaris 10
> - trying to patch the assembler code not to use compare-and-swap
> - trying to hack the build process to build libgcc_s and libstdc++ for sparcv8
>
> Thoughts?
I'll agree with Jan, supporting gcc backends upstream considers obsolete
for a compiler is probably too much work if no absolutely needed. As we
already made the decision to go for v8+ for Solaris 10 and Solaris 10 as
base anyway is probably the sanest way to go.
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
More information about the maintainers
mailing list