From 84af6d10a2f77d9e1de9a1f12efcebb51222fa4a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 5 Sep 2016 18:01:13 +0000 Subject: [PATCH] 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/libunwind/include/unwind.h b/libunwind/include/unwind.h index 0e01a2c..1d163ca 100644 --- a/libunwind/include/unwind.h +++ b/libunwind/include/unwind.h @@ -57,6 +57,7 @@ typedef uint32_t _Unwind_State; static const _Unwind_State _US_VIRTUAL_UNWIND_FRAME = 0; static const _Unwind_State _US_UNWIND_FRAME_STARTING = 1; static const _Unwind_State _US_UNWIND_FRAME_RESUME = 2; +static const _Unwind_State _US_ACTION_MASK = 3; /* Undocumented flag for force unwinding. */ static const _Unwind_State _US_FORCE_UNWIND = 8; -- 2.7.4