This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/77330] __float128 segfaults on 32-bit x86 due to 8-byte malloc alignment


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]