Commit 23327dae by Jan Hubicka Committed by Jan Hubicka

* i386.c (classify_argument): Properly compute word size of the analyzed object.

From-SVN: r56602
parent c49439f1
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,
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment