[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment
joseph at codesourcery dot com
gcc-bugzilla@gcc.gnu.org
Mon Aug 22 22:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77330
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I think this is a malloc bug: x86 malloc should produce 16-byte-aligned
results because the relevant TR / TS documents define _Decimal128 and
_Float128 in such a way that they are types for which malloc should return
suitably aligned memory.
I also think GCC should, correspondingly, make max_align_t have 16-byte
alignment on 32-bit x86, notwithstanding that this is a minor ABI change.
More information about the Gcc-bugs
mailing list