old-cross-binutils/gdb/config/pa/xm-pa.h
Jim Kingdon a4374df58d bugfix
1993-06-29 18:53:40 +00:00

21 lines
780 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) \
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"); \
memcpy (&list->arg_bytes[list->argindex - argsize], argaddr, argsize); \
if (argsize <= 4) \
list->argindex -= 4; \
else if (argsize <= 8) \
list->argindex -= 8; \
/* 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->arg_bytes \
+ list->nargs * list->max_arg_size)