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: "adrien at guinet dot me" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 18 Jan 2015 18:34: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
Adrien Guinet <adrien at guinet dot me> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |---
--- Comment #7 from Adrien Guinet <adrien at guinet dot me> ---
>From my understanding of
https://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html, the "aligned"
attribute inside a structure aligns the object inside this structure, and
nothing more, as the example says:
"You can also specify the alignment of structure fields. For example, to create
a double-word aligned int pair, you could write:
struct foo { int x[2] __attribute__ ((aligned (8))); };
This is an alternative to creating a union with a double member that forces the
union to be double-word aligned. "
If I create a union, there is no alignment information. Anyway, I'd be happy to
read the official definition if it is specified somewhere!
Thanks!