From 23327dae1f4c8d09fe38b91da074195a945e8123 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 27 Aug 2002 18:01:34 +0200 Subject: [PATCH] * i386.c (classify_argument): Properly compute word size of the analyzed object. From-SVN: r56602 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb1ab0855a8..4d0a4eb2ecd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Aug 27 18:00:11 CEST 2002 Jan Hubicka + + * i386.c (classify_argument): Properly compute word size of the analyzed object. + Tue Aug 27 14:39:09 2002 J"orn Rennecke * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp, diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 2f66a01230b..7635037215d 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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)) { -- 2.30.2