This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/49923] __attirubte__((packed)) on ARM is sometimes dropped
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 3 Aug 2011 17:39:46 +0000
- Subject: [Bug c/49923] __attirubte__((packed)) on ARM is sometimes dropped
- Auto-submitted: auto-generated
- References: <bug-49923-4@http.gcc.gnu.org/bugzilla/>
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;
}