This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2006 23:06:07 -0000
- Subject: [Bug target/26721] [4.2 Regression]: Gcc generates unaligned access
- References: <bug-26721-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from sje at cup dot hp dot com 2006-03-16 23:06 -------
It looks to me like this is due to Richard Guenther's patch at:
http://gcc.gnu.org/ml/gcc-patches/2006-03/msg00737.html
When I removed the non-structure part of this patch the problem went away.
specifically I changed
align = MIN (inner, DECL_ALIGN (exp));
back to
align = MIN (align, DECL_ALIGN (exp));
for the DECL_P case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26721