From: Saleem Abdulrasool Date: Wed, 23 Aug 2017 16:57:55 +0000 (+0000) Subject: Headers: explicitly specify double-word alignment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01c1581a9c6677d4316d0d7b64c8e9a1cb742e1b;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311576 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h index c5ad04863f..22414a4e46 100644 --- a/lib/Headers/unwind.h +++ b/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;