Commit 79dc3d44 by David Edelsohn Committed by David Edelsohn

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
parent 78e78537
2001-12-08 David Edelsohn <edelsohn@gnu.org>
* stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
to unions.
2001-12-08 Neil Booth <neil@daikokuya.demon.co.uk>
* c-parse.in: Take string literals in assembler constructs,
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment