builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes rather than play with TREE_INT_CST_LOW.

* builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
        rather than play with TREE_INT_CST_LOW.

From-SVN: r28314
This commit is contained in:
Richard Henderson 1999-07-28 11:20:07 -07:00 committed by Richard Henderson
parent 1a618a5a8b
commit d0be05dbc4
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Jul 28 11:19:06 1999 Richard Henderson <rth@cygnus.com>
* builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
rather than play with TREE_INT_CST_LOW.
1999-07-27 Philip Blundell <pb@nexus.co.uk>
* config/arm/telf.h: Include dbxelf.h.

View File

@ -1942,8 +1942,7 @@ std_expand_builtin_va_arg (valist, type)
/* Compute the rounded size of the type. */
align = PARM_BOUNDARY / BITS_PER_UNIT;
rounded_size = (((TREE_INT_CST_LOW (TYPE_SIZE (type)) / BITS_PER_UNIT
+ align - 1) / align) * align);
rounded_size = (((int_size_in_bytes (type) + align - 1) / align) * align);
/* Get AP. */
addr_tree = valist;