This is an archive of the discontinued LLVM Phabricator instance.

[libcxxabi] Don't check gcc_s when building with libunwind
AbandonedPublic

Authored by Eugene.Zelenko on Jun 9 2016, 2:38 PM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

Eugene.Zelenko retitled this revision from to [libcxxabi] Don't check gcc_s when building with libunwind.
Eugene.Zelenko updated this object.
Eugene.Zelenko set the repository for this revision to rL LLVM.
Eugene.Zelenko added a subscriber: llvm-commits.
compnerd requested changes to this revision.Jun 9 2016, 5:49 PM
compnerd edited edge metadata.

Unfortunately, __gcc_personality_v0 is not provided by libc as it should, but rather the compiler builtins. Using the LLVM unwinder does not guarantee that we are using clang_rt.builtins rather than libgcc. Changing this to check if we are using -rtlib=compiler-rt seems much more reasonable.

But, otherwise, this is a great idea.

This revision now requires changes to proceed.Jun 9 2016, 5:49 PM

Looks like -rtlib is not mentioned in libcxxabi at all. I build stage 1 LLVM/Clang with compiler-rt, so dependency should be satisfied, but I don't know enough details, so will be good idea if somebody more knowledgeable will take over this improvement.

Eugene.Zelenko abandoned this revision.Jul 15 2016, 10:31 AM

Obsoleted by Saleem work.