Commit 25868f6c by Scott Snyder Committed by Jason Merrill

tree.c (layout_basetypes): If we change TYPE_SIZE, change TYPE_SIZE_UNIT too.

	* tree.c (layout_basetypes): If we change TYPE_SIZE, change
	TYPE_SIZE_UNIT too.

From-SVN: r20142
parent a681b39b
1998-05-29 scott snyder <snyder@d0sgif.fnal.gov>
* tree.c (layout_basetypes): If we change TYPE_SIZE, change
TYPE_SIZE_UNIT too.
1998-05-29 Mark Mitchell <mark@markmitchell.com> 1998-05-29 Mark Mitchell <mark@markmitchell.com>
* decl.c (grokdeclarator): Don't complain about in-class * decl.c (grokdeclarator): Don't complain about in-class
......
...@@ -722,7 +722,11 @@ layout_basetypes (rec, max) ...@@ -722,7 +722,11 @@ layout_basetypes (rec, max)
here, as that is for this class, without any virtual base classes. */ here, as that is for this class, without any virtual base classes. */
TYPE_ALIGN (rec) = record_align; TYPE_ALIGN (rec) = record_align;
if (const_size != nonvirtual_const_size) if (const_size != nonvirtual_const_size)
TYPE_SIZE (rec) = size_int (const_size); {
TYPE_SIZE (rec) = size_int (const_size);
TYPE_SIZE_UNIT (rec) = size_binop (FLOOR_DIV_EXPR, TYPE_SIZE (rec),
size_int (BITS_PER_UNIT));
}
/* Now propagate offset information throughout the lattice. */ /* Now propagate offset information throughout the lattice. */
for (i = 0; i < n_baseclasses; i++) for (i = 0; i < n_baseclasses; i++)
......
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