OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / tree-nested.c
index a20e320..2c1b919 100644 (file)
@@ -183,6 +183,10 @@ insert_field_into_struct (tree type, tree field)
 
   TREE_CHAIN (field) = *p;
   *p = field;
 
   TREE_CHAIN (field) = *p;
   *p = field;
+
+  /* Set correct alignment for frame struct type.  */
+  if (TYPE_ALIGN (type) < DECL_ALIGN (field))
+    TYPE_ALIGN (type) = DECL_ALIGN (field);
 }
 
 /* Build or return the RECORD_TYPE that describes the frame state that is
 }
 
 /* Build or return the RECORD_TYPE that describes the frame state that is