This is an archive of the discontinued LLVM Phabricator instance.

Formalize FreeBSD support of compiler rt
Needs ReviewPublic

Authored by trixirt on Jan 19 2018, 11:50 AM.

Details

Summary

FreeBSD's libgcc and libgcc_p are symlinks to libcompiler_rt and libcompiler_rt_p
Start using the compiler rt libs directly.

Diff Detail

Repository
rC Clang

Event Timeline

trixirt created this revision.Jan 19 2018, 11:50 AM
bsdjhb added a subscriber: bsdjhb.Jan 31 2018, 9:18 AM

My only question is if we want an OS version check as the FreeBSD driver does now for libc++ vs libstdc++? FreeBSD started using libcompiler_rt for libgcc.a in 9.0.

What's wrong with the symlink approach?

I think it is overkill to look for fbsd 8, it was eol-ed 2015, and 9 in 2016.
A native build of clang 7 on fbsd 8 would be difficult to pull off, needing at least 1-3 intermediate clang's/gcc's

The symlinks were useful in the transition from gcc to clang.
Now they don't serve any purpose.
Clang uses libcompiler_rt, not libgcc.