aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn Hassey <hassey@gnu.org>1993-08-16 19:42:38 +0000
committerJohn Hassey <hassey@gnu.org>1993-08-16 19:42:38 +0000
commit41fe0b83ba0c830077b46e8386065204fcd4fd6e (patch)
tree822ad1bc54ca8dc057c03af4b0e4637d52ace08c /gcc
parent9c5501daf4ad0db95517edac57adf12292634cd8 (diff)
downloadgcc-41fe0b83ba0c830077b46e8386065204fcd4fd6e.zip
gcc-41fe0b83ba0c830077b46e8386065204fcd4fd6e.tar.gz
gcc-41fe0b83ba0c830077b46e8386065204fcd4fd6e.tar.bz2
Fixed va_list problem in _int_varargs.h
From-SVN: r5165
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixinc.dgux26
1 files changed, 17 insertions, 9 deletions
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