diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-28 18:20:07 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-07-28 18:20:07 +0000 |
commit | 7102dbcc87a7f6a529ed1f00a14d6517e4f9b4a4 (patch) | |
tree | a8489e1eccbae34b71579345ecea2f474d35c95f /gcc | |
parent | fd0e34786dceb982aaf272c7865e6e568fbfc031 (diff) | |
download | gcc-7102dbcc87a7f6a529ed1f00a14d6517e4f9b4a4.tar.gz |
* builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
rather than play with TREE_INT_CST_LOW.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28314 138bc75d-0d04-0410-961f-82ee72b054a4
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 8a1e081d74f..eb5c409b58a 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 20c8f1c0ed7..6cc3b1ba031 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; |