From: Richard Henderson Date: Wed, 28 Jul 1999 18:20:07 +0000 (-0700) Subject: builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes rather than play with... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0be05dbc4b53f224ea31c5f3eb4c1e1b73bc978;p=gcc.git 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 --- 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 + + * 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 * 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;