]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes rather than play with...
authorRichard Henderson <rth@cygnus.com>
Wed, 28 Jul 1999 18:20:07 +0000 (11:20 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 28 Jul 1999 18:20:07 +0000 (11:20 -0700)
        * builtins.c (std_expand_builtin_va_arg): Use int_size_in_bytes
        rather than play with TREE_INT_CST_LOW.

From-SVN: r28314

gcc/ChangeLog
gcc/builtins.c

index 8a1e081d74fa9472026f07e3e59a9aeca912f873..eb5c409b58aa7a1aecaf29ad182f544e87d00c3d 100644 (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.
index 20c8f1c0ed7f4494e0fd345822958c65925b3d94..6cc3b1ba0312e06d5bf5fe3ab90c71e6bea6973b 100644 (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;