From 79dc3d44fbb3e5461396f95725eab5b442c7d9a8 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Sat, 8 Dec 2001 19:43:07 +0000 Subject: stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions. * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions. From-SVN: r47796 --- gcc/stor-layout.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index a3d122f..05eaf24 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -658,6 +658,10 @@ place_union_field (rli, field) MIN (desired_align, (unsigned) BIGGEST_FIELD_ALIGNMENT); #endif +#ifdef ADJUST_FIELD_ALIGN + desired_align = ADJUST_FIELD_ALIGN (field, desired_align); +#endif + TYPE_USER_ALIGN (rli->t) |= DECL_USER_ALIGN (field); /* Union must be at least as aligned as any field requires. */ -- cgit v1.1