[Bug middle-end/58041] Unaligned access to arrays in packed structure

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 1 16:23:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041

--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
I believe that you need to set alignment of the type of MEM_REFs you
create in replace_ref along the lines it is done in
build_ref_for_offset in tree-sra.c.

I wonder whether STRICT_ALIGNMENT has really any meaning nowadays,
given that for example x86_64 is not a strict-alignment platform
except for SSE vectors.



More information about the Gcc-bugs mailing list