summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc.dgux
diff options
context:
space:
mode:
authorhassey <hassey@138bc75d-0d04-0410-961f-82ee72b054a4>1993-08-16 19:42:38 +0000
committerhassey <hassey@138bc75d-0d04-0410-961f-82ee72b054a4>1993-08-16 19:42:38 +0000
commit0ae2c7e66d5c30658f2c2577b1a26604556926c3 (patch)
tree822ad1bc54ca8dc057c03af4b0e4637d52ace08c /gcc/fixinc.dgux
parentfa735390f5ce7973d0d593793d400f0c7eb75546 (diff)
downloadppe42-gcc-0ae2c7e66d5c30658f2c2577b1a26604556926c3.tar.gz
ppe42-gcc-0ae2c7e66d5c30658f2c2577b1a26604556926c3.zip
Fixed va_list problem in _int_varargs.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5165 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.dgux')
-rwxr-xr-xgcc/fixinc.dgux26
1 files changed, 17 insertions, 9 deletions
diff --git a/gcc/fixinc.dgux b/gcc/fixinc.dgux
index 89133b98a2d..6a7b1a57aea 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
OpenPOWER on IntegriCloud