[LLVMdev] [cfe-dev] Unwind behaviour in Clang/LLVM

Joerg Sonnenberger joerg at britannica.bec.de
Thu Feb 6 05:59:40 PST 2014


On Thu, Feb 06, 2014 at 01:29:43PM +0000, Renato Golin wrote:
> We have two unwind flags: nounwind, which flags functions that can't unwind
> (leaf, nothrow, etc) and uwtable, which forces generation of the table
> regardless of nounwind. It seems sensible that C++ code with exceptions
> enabled should generate the tables for all functions, in case they're
> called by (or call) external functions. In C we don't want any of that.

This is not true. Even for nounwind, you want to get basic tables so
that backtrace(3) works.

Joerg



More information about the llvm-dev mailing list