]> git.ipfire.org Git - thirdparty/gcc.git/commit
libphobos: Give _Unwind_Exception an alignment that best resembles __attribute__...
authorIain Buclaw <ibuclaw@gdcproject.org>
Sat, 25 Sep 2021 17:50:52 +0000 (19:50 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Tue, 26 Apr 2022 15:03:53 +0000 (16:03 +0100)
commita94620503e8a79917aca25ab7d804232ba12efc0
treeff58f83f3bcf97f7f55e5f51a4a24aba2eead98d
parent0bb57657f20b9b2d9b43b8e1d0748bd6367177f2
libphobos: Give _Unwind_Exception an alignment that best resembles __attribute__((aligned))

For interoperability with C++ EH, the alignment should match, otherwise
D may not be able to intercept exceptions thrown from C++.

libphobos/ChangeLog:

* libdruntime/gcc/unwind/generic.d (__aligned__): Define.
(_Unwind_Exception): Align struct to __aligned__.

(cherry picked from commit efa5449a094d3887e124d400ff0410af2c745b2d)
libphobos/libdruntime/gcc/unwind/generic.d