This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/53970] -ftree-vectorization does not handle well unaligned data
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jul 2012 14:53:21 +0000
- Subject: [Bug tree-optimization/53970] -ftree-vectorization does not handle well unaligned data
- Auto-submitted: auto-generated
- References: <bug-53970-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53970
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-16 14:53:21 UTC ---
The only hint we have on the a->l[i] expression that it involves a packed
aggregate is DECL_ALIGN of the 'l' FIELD_DECL and TYPE_ALIGN of mystruct
itself. Nowhere we have a TYPE/DECL_PACKED flag set. That is because how
pragma pack works - it simply adjusts the global maximum_field_alignment
of stor-layout.c.
That means that expr.c:contains_packed_reference does not work.