------- Comment #2 from pinskia at gcc dot gnu dot org 2008-04-08 02:04 ------- With -mstrict-align, we get the correct (but suboptimal) answer as the middle-end knows that load and stores cannot handled unaligned addresses.
I think we need more flexible TARGET_STRICT_ALIGN which is based on a mode rather than just true or false. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35866