[Bug c/64655] Vectorizer is always using load aligned instructions with objects with the "aligned" attribute
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 18 17:39:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64655
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That is a user error. malloc doesn't guarantee bigger alignment than alignment
of basic C types. If you need to allocate heap memory with bigger alignments,
you need to use different allocation functions, like posix_memalign, memalign,
aligned_alloc, valloc, pvalloc or mmap.
More information about the Gcc-bugs
mailing list