This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/49923] __attirubte__((packed)) on ARM is sometimes dropped


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]