diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-08-23 15:35:33 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-08-23 15:35:33 +0000 |
commit | 75cfabef35e8b414c8258e4de93cfec3578a96ba (patch) | |
tree | 1ef9b3af75005f2080d02a34cdc62aa3019469d8 /clang/lib/Headers/unwind.h | |
parent | 5b389f1cf769ce628e0df866cdda866de7c35631 (diff) | |
download | bcm5719-llvm-75cfabef35e8b414c8258e4de93cfec3578a96ba.tar.gz bcm5719-llvm-75cfabef35e8b414c8258e4de93cfec3578a96ba.zip |
Headers: give _Unwind_Control_Block double-word alignment
The C++ ABI requires that the exception object (which under AEABI is the
`_Unwind_Control_Block`) is double-word aligned. The attribute was
applied to the `_Unwind_Exception` type, but not the
`_Unwind_Control_Block`. This should fix the libunwind test for the
alignment of the exception type.
llvm-svn: 311563
Diffstat (limited to 'clang/lib/Headers/unwind.h')
-rw-r--r-- | clang/lib/Headers/unwind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h index e94b00b57c2..c5ad04863f4 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__)); #else struct _Unwind_Exception { _Unwind_Exception_Class exception_class; |