This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Fix build errors when using gcc on LoongArch
ClosedPublic

Authored by tangyouling on Dec 22 2022, 3:30 AM.

Details

Summary
  • GCC does not recognize $fcsr0, uses $r0 instead.
  • GCC does not implement __builtin_thread_pointer, which can be obtained directly through $tp.

Diff Detail

Event Timeline

tangyouling created this revision.Dec 22 2022, 3:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2022, 3:30 AM
tangyouling requested review of this revision.Dec 22 2022, 3:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2022, 3:30 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Dec 23 2022, 3:06 AM
This revision was landed with ongoing or failed builds.Dec 25 2022, 5:41 PM
This revision was automatically updated to reflect the committed changes.