projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
957a1c3
)
(layout_record): Use ADJUST_FIELD_ALIGN to modify alignment of fields
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 21 Apr 1996 01:22:14 +0000
(21:22 -0400)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index a67418b35ee83a3d9ac82ae858434d22634e62cc..e7510fe5f6cf3a801d6bb697608742c98f8f68a2 100644
(file)
--- a/
gcc/stor-layout.c
+++ b/
gcc/stor-layout.c
@@
-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