------- Comment #8 from amylaar at gcc dot gnu dot org 2006-04-20 21:09 ------- (In reply to comment #7) > I suggest you test on an architecture that traps on unaligned accesses, so as > ia64 with the correct prctrl setup. I don't have access to an ia64 host, but sh-elf is a STRICT_ALIGNMENT target, too. > In particular you seem to miss that > ARRAY_REF can have a custom index range that doesn't start with zero.
get_inner_reference should take care of that. > Otherwise the patch looks reasonable, though you may wait on the backport of > the bits from mainline for the 4.1 branch. When I backported the mainline patch to our 4.1 based sources I've found that it did ICE on dhrystone. The 4.1 patch is completely re-written. I'll have to forward-port that when I find some time... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27226