Add missing _US_ACTION_MASK constant to unwind.h
authorDimitry Andric <dimitry@andric.com>
Mon, 5 Sep 2016 18:01:13 +0000 (18:01 +0000)
committerDimitry Andric <dimitry@andric.com>
Mon, 5 Sep 2016 18:01:13 +0000 (18:01 +0000)
commit84af6d10a2f77d9e1de9a1f12efcebb51222fa4a
treee7b3d0da5b9ea67b9c78314d8114ab7a8d5d91e8
parentf105abbc0d0bf316f43ca6a3e0b2aae6daedf1d6
Add missing _US_ACTION_MASK constant to unwind.h

Summary:
During building of recent compiler-rt sources on FreeBSD for arm, I
noticed that our unwind.h (which originates in libunwind) was missing
the `_US_ACTION_MASK` constant:

    compiler-rt/lib/builtins/gcc_personality_v0.c:187:18: error: use of undeclared identifier '_US_ACTION_MASK'
        if ((state & _US_ACTION_MASK) != _US_UNWIND_FRAME_STARTING)
                     ^

It appears that both clang's internal unwind.h, and libgcc's unwind.h
define this constant as 3, so let's add this to libunwind's version too.

Reviewers: logan, kledzik, davide, emaste

Subscribers: joerg, davide, aemerson, emaste, llvm-commits

Differential Revision: https://reviews.llvm.org/D24222

llvm-svn: 280669
libunwind/include/unwind.h