[libcxxabi] Align unwindHeader on a double-word boundary.
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 13 May 2017 03:14:49 +0000 (03:14 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 13 May 2017 03:14:49 +0000 (03:14 +0000)
commitc501f754a584701bbe1646a2a16bcdc8aabae9ea
tree7fce143cd9c03566f1a1bbab15c5e8e16a1d0fcb
parent5057086a35a6116a65c6ee1da5be09e65ac5ba8a
[libcxxabi] Align unwindHeader on a double-word boundary.

r276215 made a change to annotate _Unwind_Exception with attribute
"aligned" so that an exception object following field __cxa_exception
is sufficiently aligned. This fix hasn't been incorporated to unwind.h
on Darwin since it is an ABI breaking change.

Instead of annotating struct _Unwind_Exception with the attribute, this
commit annotates field unwindHeader of __cxa_exception. This ensures the
exception object is sufficiently aligned without breaking the ABI.

This recommits r302763 with fixes to RUN lines in the test case.

rdar://problem/25364625

Differential Revision: https://reviews.llvm.org/D33030

llvm-svn: 302978
libcxxabi/src/cxa_exception.hpp
libcxxabi/test/exception_object_alignment.sh.cpp [new file with mode: 0644]