From 41fe0b83ba0c830077b46e8386065204fcd4fd6e Mon Sep 17 00:00:00 2001 From: John Hassey Date: Mon, 16 Aug 1993 19:42:38 +0000 Subject: Fixed va_list problem in _int_varargs.h From-SVN: r5165 --- gcc/fixinc.dgux | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'gcc') diff --git a/gcc/fixinc.dgux b/gcc/fixinc.dgux index 89133b9..6a7b1a5 100755 --- a/gcc/fixinc.dgux +++ b/gcc/fixinc.dgux @@ -133,19 +133,27 @@ if [ -r ${INPUT}/$file ]; then echo Replacing $file cat > ${LIB}/$file << EOF /* This file was generated by fixinc.dgux. */ +#ifndef __INT_VARARGS_H +#define __INT_VARARGS_H -/* Define __gnuc_va_list, just as in gstdarg.h. */ - +#if defined(__m88k__) && defined (__DGUX__) #ifndef __GNUC_VA_LIST #define __GNUC_VA_LIST -#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) -typedef char *__gnuc_va_list; -#else -typedef void *__gnuc_va_list; -#endif -#endif - +typedef struct +{ + int __va_arg; /* argument number */ + int *__va_stk; /* start of args passed on stack */ + int *__va_reg; /* start of args passed in regs */ +} __gnuc_va_list; +#endif /* not __GNUC_VA_LIST */ +#endif /* 88k && dgux */ + +#ifndef _VA_LIST_ +#define _VA_LIST_ typedef __gnuc_va_list va_list; +#endif /* _VA_LIST_ */ + +#endif /* __INT_VARARGS_H */ EOF chmod a+r ${LIB}/$file -- cgit v1.1