This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2016 22:25:43 +0000
- Subject: [Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment
- Auto-submitted: auto-generated
- References: <bug-77330-4@http.gcc.gnu.org/bugzilla/>
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.