mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
d: Fix regressing test failures on ix86-solaris2.11
The _Unwind_Exception struct had its alignment adjusted to 16-bytes, however malloc() on Solaris X86 is not guaranteed to allocate memory aligned to 16-bytes as well. PR d/102837 libphobos/ChangeLog: * libdruntime/gcc/deh.d (ExceptionHeader.free): Use memset to reset contents of internal EH storage.
This commit is contained in:
@@ -207,7 +207,7 @@ struct ExceptionHeader
|
||||
*/
|
||||
static void free(ExceptionHeader* eh) @nogc
|
||||
{
|
||||
*eh = ExceptionHeader.init;
|
||||
__builtin_memset(eh, 0, ExceptionHeader.sizeof);
|
||||
if (eh != &ehstorage)
|
||||
__builtin_free(eh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user