http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49923
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> 2011-08-03 17:39:05 UTC --- Søren, can you please verify this patch fixes the problem for you? It's based on trunk but should apply well to the 4.6 branch too. Thanks. Index: src/gcc/tree-sra.c =================================================================== --- src.orig/gcc/tree-sra.c +++ src/gcc/tree-sra.c @@ -3688,6 +3688,9 @@ access_precludes_ipa_sra_p (struct acces || gimple_code (access->stmt) == GIMPLE_ASM)) return true; + if (tree_non_mode_aligned_mem_p (access->expr)) + return true; + return false; }