This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64655] Vectorizer is always using load aligned instructions with objects with the "aligned" attribute
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Jan 2015 18:06:11 +0000
- Subject: [Bug c/64655] Vectorizer is always using load aligned instructions with objects with the "aligned" attribute
- Auto-submitted: auto-generated
- References: <bug-64655-4 at http dot gcc dot gnu dot org/bugzilla/>
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
Resolution|--- |INVALID
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You are wrong on this. You've told the compiler that those arrays will be
aligned to 32 bytes, but they are not, so running the code is undefined
behavior. malloc doesn't have a way to pass alignment requirements to it, so
there is no way it could know about the alignment requirements of struct A.