[PATCH] D20677: Make it possible to build a -fno-exceptions libc++abi variant.

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Thu May 26 06:20:08 PDT 2016


rmaprath created this revision.
rmaprath added reviewers: bcraig, jroelofs, EricWF.
rmaprath added a subscriber: cfe-commits.

Support for building a -fno-exceptions libc++ variant was reinstated recently. However, some of the standard library functions like `std::terminate()` are currently spread across lib++ and libc++abi, making the -fno-exceptions libc++ variant useless when those functions are used (as they pull in all the exceptions machinery that we are trying to get rid of in the final image).

This patch makes it possilbe to also build libc++abi with -fno-exceptions so that functions like `std::terminate()` can be used in a no-exceptions environment.

Most of the sources are already correctly setup to support a -fno-exceptions build, I just filled in the missing bits.

If there are no objections, I will get this committed over the weekend.

http://reviews.llvm.org/D20677

Files:
  CMakeLists.txt
  src/cxa_aux_runtime.cpp
  src/cxa_handlers.cpp
  src/cxa_new_delete.cpp
  src/cxa_personality.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20677.58597.patch
Type: text/x-patch
Size: 5279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160526/81e953a2/attachment-0001.bin>


More information about the cfe-commits mailing list