Loading libunwind/include/unwind.h +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ struct _Unwind_Control_Block { } pr_cache; long long int :0; /* Enforce the 8-byte alignment */ }; } __attribute__((__aligned__(8))); typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (_Unwind_State state, Loading libunwind/test/alignment.pass.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -13,8 +13,16 @@ #include <unwind.h> struct MaxAligned {} __attribute__((aligned)); static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), ""); // EHABI : 8-byte aligned // itanium: largest supported alignment for the system #if defined(_LIBUNWIND_ARM_EHABI) static_assert(alignof(_Unwind_Control_Block) == 8, "_Unwind_Control_Block must be double-word aligned"); #else struct MaxAligned {} __attribute__((__aligned__)); static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), "_Unwind_Exception must be maximally aligned"); #endif int main() { Loading Loading
libunwind/include/unwind.h +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ struct _Unwind_Control_Block { } pr_cache; long long int :0; /* Enforce the 8-byte alignment */ }; } __attribute__((__aligned__(8))); typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (_Unwind_State state, Loading
libunwind/test/alignment.pass.cpp +10 −2 Original line number Diff line number Diff line Loading @@ -13,8 +13,16 @@ #include <unwind.h> struct MaxAligned {} __attribute__((aligned)); static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), ""); // EHABI : 8-byte aligned // itanium: largest supported alignment for the system #if defined(_LIBUNWIND_ARM_EHABI) static_assert(alignof(_Unwind_Control_Block) == 8, "_Unwind_Control_Block must be double-word aligned"); #else struct MaxAligned {} __attribute__((__aligned__)); static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), "_Unwind_Exception must be maximally aligned"); #endif int main() { Loading