------- Comment #3 from joseph at codesourcery dot com  2008-04-10 00:15 -------
Subject: Re:  Vector load/store from a packed struct does
 not work (without -mstrict-align)

On Tue, 8 Apr 2008, pinskia at gcc dot gnu dot org wrote:

> 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.

E500 has much the same problem and so is treated as a -mstrict-align CPU, 
with all the associated suboptimal code generation (strict alignment only 
being required for E500 instructions, not for most core instructions).


-- 


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

Reply via email to