(layout_record): Use ADJUST_FIELD_ALIGN to modify alignment of fields
authorRichard Kenner <kenner@gcc.gnu.org>
Sun, 21 Apr 1996 01:22:14 +0000 (21:22 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sun, 21 Apr 1996 01:22:14 +0000 (21:22 -0400)
within records.

From-SVN: r11859

gcc/stor-layout.c

index a67418b35ee83a3d9ac82ae858434d22634e62cc..e7510fe5f6cf3a801d6bb697608742c98f8f68a2 100644 (file)
@@ -353,6 +353,9 @@ layout_record (rec)
 #ifdef BIGGEST_FIELD_ALIGNMENT
       desired_align = MIN (desired_align, BIGGEST_FIELD_ALIGNMENT);
 #endif
+#ifdef ADJUST_FIELD_ALIGN
+      desired_align = ADJUST_FIELD_ALIGN (field, desired_align);
+#endif
 
       /* Record must have at least as much alignment as any field.
         Otherwise, the alignment of the field within the record