Commit 3d5c883b by Stan Cox

(gen_stdcall_suffix): Round parameter size up to

	PARM_BOUNDARY.

From-SVN: r12608
parent a1a478c5
...@@ -48,7 +48,13 @@ gen_stdcall_suffix (decl) ...@@ -48,7 +48,13 @@ gen_stdcall_suffix (decl)
while (TREE_VALUE (formal_type) != void_type_node) while (TREE_VALUE (formal_type) != void_type_node)
{ {
total += TREE_INT_CST_LOW (TYPE_SIZE (TREE_VALUE (formal_type))); int parm_size
= TREE_INT_CST_LOW (TYPE_SIZE (TREE_VALUE (formal_type)));
/* Must round up to include padding. This is done the same
way as in store_one_arg. */
parm_size = ((parm_size + PARM_BOUNDARY - 1)
/ PARM_BOUNDARY * PARM_BOUNDARY);
total += parm_size;
formal_type = TREE_CHAIN (formal_type); formal_type = TREE_CHAIN (formal_type);
} }
} }
......
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