This is an archive of the discontinued LLVM Phabricator instance.

unwind: Allow the building of libunwind for MIPS.

Authored by vkalintiris on Sep 25 2015, 2:46 AM.



Currently, libunwind doesn't support MIPS. However, with this patch
we do allow the library to build, and we warn the user about the lack of
support for MIPS. Also, the dummy unw_getcontext() implementation for MIPS just
traps on function entry in order to avoid any confusion with silent/weird
failures at runtime.

This allows us to test an LLVM-based toolchain without the dependency on a
GCC toolchain. Of course, C++ exception handling and other things that depend
on stack unwinding will not work until we add a proper implementation of the
stub functions.

Diff Detail


Event Timeline

vkalintiris retitled this revision from to unwind: Allow the building of libunwind for MIPS..
vkalintiris updated this object.
vkalintiris added reviewers: compnerd, logan.
vkalintiris added subscribers: llvm-commits, dsanders.
compnerd accepted this revision.Sep 25 2015, 9:45 PM
compnerd edited edge metadata.
This revision is now accepted and ready to land.Sep 25 2015, 9:45 PM
This revision was automatically updated to reflect the committed changes.

@compnerd: Thanks for the review. I was wondering, are there any public buildbots testing libunwind commits? I can't see anything at the buildbots.