This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/58041] Unaligned access to arrays in packed structure
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Aug 2013 16:18:21 +0000
- Subject: [Bug middle-end/58041] Unaligned access to arrays in packed structure
- Auto-submitted: auto-generated
- References: <bug-58041-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041
Bill Schmidt <wschmidt at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-08-01
Assignee|unassigned at gcc dot gnu.org |wschmidt at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #7 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
This shouldn't be too hard to fix. Looks like we are missing a check for
possibly unaligned data when STRICT_ALIGNMENT is set. The logic for unaligned
data can be exposed from a static routine in tree-ssa-ivopts.c. I'll work up a
trial patch.