From 65101adb16a4f3e9db73ed250185bf505d9fb15b Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 23 Aug 2017 16:57:55 +0000 Subject: [PATCH] Headers: explicitly specify double-word alignment GCC will interpret `__attribute__((__aligned__))` as 8-byte alignment on ARM, but clang will not. Explicitly specify the alignment. This mirrors the declaration in libunwind. llvm-svn: 311576 --- clang/lib/Headers/unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h index c5ad04863f48..22414a4e46d0 100644 --- a/clang/lib/Headers/unwind.h +++ b/clang/lib/Headers/unwind.h @@ -149,7 +149,7 @@ struct _Unwind_Control_Block { uint32_t reserved1; } pr_cache; long long int : 0; /* force alignment of next item to 8-byte boundary */ -} __attribute__((__aligned__)); +} __attribute__((__aligned__(8))); #else struct _Unwind_Exception { _Unwind_Exception_Class exception_class;