[Bug c/56375] SIGSEGV when assign SIMD variable to member of allocated structure

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 18 16:05:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56375

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-18 16:04:49 UTC ---
(In reply to comment #1)
> User error, malloc doesn't guarantee sufficient alignment of the pointer, which
> you are relying on.  You need to use posix_memalign or memalign or align it by
> hand yourself (allocate more for the padding).

Actually it does but that is an open question for the glibc list or where ever
the supplied malloc is from.



More information about the Gcc-bugs mailing list