Commit 3923e410 by Richard Kenner Committed by Richard Kenner

stor-layout.c (place_field): When adjusting offset_align, use desired_align, not DECL_ALIGN.

	* stor-layout.c (place_field): When adjusting offset_align, use
	desired_align, not DECL_ALIGN.

From-SVN: r66428
parent 41fe9404
2003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (place_field): When adjusting offset_align, use
desired_align, not DECL_ALIGN.
2003-05-03 Nathan Sidwell <nathan@codesourcery.com> 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
* c-decl.c (pending_invalid_xref_file): Remove. * c-decl.c (pending_invalid_xref_file): Remove.
......
...@@ -1237,7 +1237,7 @@ place_field (rli, field) ...@@ -1237,7 +1237,7 @@ place_field (rli, field)
rli->offset rli->offset
= size_binop (PLUS_EXPR, rli->offset, DECL_SIZE_UNIT (field)); = size_binop (PLUS_EXPR, rli->offset, DECL_SIZE_UNIT (field));
rli->bitpos = bitsize_zero_node; rli->bitpos = bitsize_zero_node;
rli->offset_align = MIN (rli->offset_align, DECL_ALIGN (field)); rli->offset_align = MIN (rli->offset_align, desired_align);
} }
else else
{ {
......
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