diff options
author | Richard Henderson <rth@cygnus.com> | 1999-07-28 11:20:07 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-07-28 11:20:07 -0700 |
commit | d0be05dbc4b53f224ea31c5f3eb4c1e1b73bc978 (patch) | |
tree | a8489e1eccbae34b71579345ecea2f474d35c95f /gcc | |
parent | 1a618a5a8bb60eb6b1d409e05a22e50e784b358e (diff) | |
download | gcc-d0be05dbc4b53f224ea31c5f3eb4c1e1b73bc978.zip gcc-d0be05dbc4b53f224ea31c5f3eb4c1e1b73bc978.tar.gz gcc-d0be05dbc4b53f224ea31c5f3eb4c1e1b73bc978.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/builtins.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a1e081..eb5c409 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/builtins.c b/gcc/builtins.c index 20c8f1c..6cc3b1b 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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; |