This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/27226] Compiler looses track of alignment for emit_block_move
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Apr 2006 21:09:01 -0000
- Subject: [Bug middle-end/27226] Compiler looses track of alignment for emit_block_move
- References: <bug-27226-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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