This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24178] [4.0/4.1 regression] generates code that produces unaligned access exceptions
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2005 07:43:39 -0000
- Subject: [Bug target/24178] [4.0/4.1 regression] generates code that produces unaligned access exceptions
- References: <bug-24178-3055@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from rth at gcc dot gnu dot org 2005-11-02 07:43 -------
Created an attachment (id=10112)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10112&action=view)
proposed patch
The root problem is that get_aligned_mem and aligned_memory_operand
didn't match up. Adding a bit of code to get_aligned_mem to handle
MEM_ALIGN as well appears to cure the problem. I've not yet tested
this beyond Falk's trivial testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24178