From 49b33d144ba622e2f6881728f6147a2bb917dac8 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 20 Jul 2016 03:13:02 +0000 Subject: [PATCH] libunwind: Properly align _Unwind_Exception. _Unwind_Exception is required to be double word aligned. GCC has interpreted this to mean "use the maximum useful alignment for the target" so follow that lead. Obtained from: LLVM review D22543 --- contrib/llvm/projects/libunwind/include/unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/llvm/projects/libunwind/include/unwind.h b/contrib/llvm/projects/libunwind/include/unwind.h index 94880bfebae..1fc3c5ce312 100644 --- a/contrib/llvm/projects/libunwind/include/unwind.h +++ b/contrib/llvm/projects/libunwind/include/unwind.h @@ -128,7 +128,7 @@ struct _Unwind_Exception { // added for binary compatibility. uint32_t reserved[3]; #endif -}; +} __attribute__((__aligned__)); typedef _Unwind_Reason_Code (*_Unwind_Stop_Fn) (int version,