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: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 23 Aug 2016 19:12:13 +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
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #7 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Joseph,
gcc assumes that malloc, calloc, realloc, strdup, strndup
and anything with the __attribute__((__malloc__))
returns a pointer that is aligned to MALLOC_ABI_ALIGNMENT bits.
If not defined by the target, default.h sets it to BITS_PER_WORD
config/i386 does not define MALLOC_ABI_ALIGNMENT.
And BITS_PER_WORD is still 64 on x86_64 or 32 on i386.