This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Remove unlikely-working Minix.cpp and Contiki.cpp
ClosedPublic

Authored by MaskRay on Aug 21 2023, 2:52 PM.

Details

Summary

Minix is a ToolChain that was added back in 2010 but has been
unmaintained with no test. The constructed command line contains
/usr/gnu/include/c++/4.4.3 and CompilerRT-Generic which are unlikely
working for a long time.

Contiki is a barebone ToolChain that just enables safestack.
This doesn't justify a new ToolChain.

Remove these ToolChains so that their target triples will use Generic_ELF instead.

If these developers feel like having an updated llvm-project is useful,
fixing other build issues and adding a new ToolChain is much better than
having the unmaintained ToolChains.

Diff Detail

Event Timeline

MaskRay created this revision.Aug 21 2023, 2:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 2:52 PM
MaskRay requested review of this revision.Aug 21 2023, 2:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 2:52 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
brad added a comment.Aug 21 2023, 4:21 PM

Isn't there more than this to do a full proper removal?

Looking around it looks like the Ananas and Contiki support can be removed. Ananas used
to use Clang but switched back to GCC and the bits there are not maintained. The Contiki
support never went anywhere.

Isn't there more than this to do a full proper removal?

Looking around it looks like the Ananas and Contiki support can be removed. Ananas used
to use Clang but switched back to GCC and the bits there are not maintained. The Contiki
support never went anywhere.

I agree that Contiki should be removed. The code doesn't even constitute a partial port. It just enables safestack, but this doesn't really justify adding a new ToolChain.

For Ananas, it looks like the author is quite responsive (D124729). But indeed, I don't know whether it is still working.
It looks like Ananas switched from crt0.o to crt1.o but the code still uses crt1.o

MaskRay updated this revision to Diff 552171.Aug 21 2023, 5:16 PM
MaskRay retitled this revision from [Driver] Remove unlikely-working Minix.cpp to [Driver] Remove unlikely-working Minix.cpp and Contiki.cpp.
MaskRay edited the summary of this revision. (Show Details)

also remove unlikely-working Contiki.cpp

Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 5:16 PM
brad added inline comments.Aug 21 2023, 8:56 PM
llvm/utils/gn/secondary/clang/lib/Driver/BUILD.gn
68–69

Here too.

MaskRay updated this revision to Diff 552204.Aug 21 2023, 9:05 PM

update gn

MaskRay marked an inline comment as done.Aug 21 2023, 9:05 PM
brad accepted this revision.Aug 23 2023, 11:43 PM
This revision is now accepted and ready to land.Aug 23 2023, 11:43 PM
This revision was landed with ongoing or failed builds.Aug 23 2023, 11:58 PM
This revision was automatically updated to reflect the committed changes.
clang/test/Driver/fsanitize.c