(CLIPPER_ARG_SIZE): Return size in bytes.

(FUNCTION_ARG_ADVANCE): Fix argument alignment processing.

From-SVN: r7941
This commit is contained in:
Richard Kenner 1994-08-17 18:31:36 -04:00
parent 7e1d482b8c
commit 0179115349
1 changed files with 5 additions and 4 deletions

View File

@ -466,9 +466,10 @@ struct _clipper_cum_args { int num; int size; };
/* internal helper : size of an argument */
#define CLIPPER_ARG_SIZE(MODE, TYPE) \
((MODE) != BLKmode \
? (GET_MODE_SIZE (MODE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD \
: (int_size_in_bytes (TYPE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD)
(((MODE) != BLKmode \
? (GET_MODE_SIZE (MODE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD \
: (int_size_in_bytes (TYPE) + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD) \
* UNITS_PER_WORD)
/* Update the data in CUM to advance over an argument
of mode MODE and data type TYPE.
@ -495,7 +496,7 @@ do \
{ \
int align = FUNCTION_ARG_BOUNDARY (MODE, TYPE) / BITS_PER_UNIT; \
(CUM).size += align - 1; \
(CUM).size &= align - 1; \
(CUM).size &= ~(align - 1); \
(CUM).size += CLIPPER_ARG_SIZE (MODE, TYPE); \
} \
} while (0)