mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
88bc5cafd0
arg_bytes field of makeva_list is always aligned. * config/pa/xm-pa.h: Make arglist_address a char *.
28 lines
988 B
C
28 lines
988 B
C
/* Definitions for all PA machines. */
|
|
|
|
#define MAKEVA_START(list) \
|
|
list->argindex = list->nargs * list->max_arg_size;
|
|
|
|
#define MAKEVA_ARG(list, argaddr, argsize) \
|
|
{ \
|
|
int rounded_argsize; \
|
|
if (argsize > 8) \
|
|
/* Currently this never happens; printf_command only uses argsize */ \
|
|
/* of sizeof (int), sizeof (double), or sizeof (long long). */ \
|
|
error ("MAKEVA_ARG not fully written for hp-pa"); \
|
|
if (argsize <= 4) \
|
|
rounded_argsize = 4; \
|
|
else if (argsize <= 8) \
|
|
rounded_argsize = 8; \
|
|
list->argindex -= rounded_argsize; \
|
|
while ((int)(&list->aligner.arg_bytes[list->argindex]) % rounded_argsize) \
|
|
list->argindex--; \
|
|
memcpy (&list->aligner.arg_bytes[list->argindex], argaddr, argsize); \
|
|
}
|
|
|
|
/* The address of the arglist is the address right after the args
|
|
(which is what you'd expect). */
|
|
#define MAKEVA_END(list) \
|
|
return (va_list) (list->aligner.arg_bytes \
|
|
+ list->nargs * list->max_arg_size)
|