]> gcc.gnu.org Git - gcc.git/commitdiff
* i386.c (classify_argument): Properly compute word size of the analyzed object.
authorJan Hubicka <jh@suse.cz>
Tue, 27 Aug 2002 16:01:34 +0000 (18:01 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 27 Aug 2002 16:01:34 +0000 (16:01 +0000)
From-SVN: r56602

gcc/ChangeLog
gcc/config/i386/i386.c

index bb1ab0855a88742ce834fdf31fb8218aeb61a67a..4d0a4eb2ecd5a3b8430b62c9e9591f9aa5d22a52 100644 (file)
@@ -1,3 +1,7 @@
+Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
+
+       * i386.c (classify_argument): Properly compute word size of the analyzed object.
+
 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
        * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
index 2f66a01230b72e877d6ebe09e343f3cd05f5d463..7635037215d58e85fa47a3bde64bfc70df90a21b 100644 (file)
@@ -1592,7 +1592,7 @@ classify_argument (mode, type, classes, bit_offset)
 {
   int bytes =
     (mode == BLKmode) ? int_size_in_bytes (type) : (int) GET_MODE_SIZE (mode);
-  int words = (bytes + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
+  int words = (bytes + (bit_offset % 64) / 8 + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
 
   if (type && AGGREGATE_TYPE_P (type))
     {
This page took 0.121701 seconds and 5 git commands to generate.