mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 01:09:20 +08:00
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:
parent
1a618a5a8b
commit
d0be05dbc4
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user