[Bug target/26721] [4.2 Regression]: Gcc generates unaligned access

sje at cup dot hp dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 16 23:06:00 GMT 2006



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



More information about the Gcc-bugs mailing list