This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Allow for sparcv8plus subdir with Solaris/SPARC GCC
ClosedPublic

Authored by ro on Aug 3 2023, 10:16 AM.

Details

Summary

Since GCC 11, the bundled Solaris/SPARC GCC uses the sparcv8plus subdirectory for 32-bit objects, just like upstream GCC. Before that, it used 32 instead from a local patch.

Since clang doesn't know about that sparcv8plus subdirectory, it wouldn't properly use GCC 11+ installations.

The new solaris-sparc-gcc-search.test testcase wasn't run initially (like the existing crash-report-null.test) because the .test suffix wasn't handled.

Tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu.

Diff Detail

Event Timeline

ro created this revision.Aug 3 2023, 10:16 AM
ro requested review of this revision.Aug 3 2023, 10:16 AM
MaskRay accepted this revision.Aug 3 2023, 10:32 AM
MaskRay added inline comments.
clang/test/Driver/lit.local.cfg
23

Instead of adding a new extension, you can just name your test .c?

This revision is now accepted and ready to land.Aug 3 2023, 10:32 AM
ro added inline comments.Aug 3 2023, 10:35 AM
clang/test/Driver/lit.local.cfg
23

I could, but went for .test instead because the clang invocations don't need input.

Besides, there's still the issue of the existing crash-report-null.test that's currently ignored.

MaskRay added inline comments.Aug 3 2023, 10:57 AM
clang/test/Driver/lit.local.cfg
23

OK, sounds good since many other directories accept .test

This revision was landed with ongoing or failed builds.Aug 3 2023, 11:02 AM
This revision was automatically updated to reflect the committed changes.