Subject: lib/1695: varargs.h needs ... for gcc 2.7.x
To: None <gnats-bugs@gnats.netbsd.org>
From: Arne Henrik Juul <arnej@imf.unit.no>
List: netbsd-bugs
Date: 10/26/1995 14:31:55
>Number:         1695
>Category:       lib
>Synopsis:       varargs.h needs ... for gcc 2.7.x
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 26 08:50:02 1995
>Last-Modified:
>Originator:     Arne H. Juul
>Organization:
	University of Trondheim, Norway
>Release:        NetBSD-current 26 Oct 1995
>Environment:
	
System: NetBSD leon.imf.unit.no 1.1_ALPHA NetBSD 1.1_ALPHA (LEON) #0: Fri Oct 20 14:44:48 MET 1995 arnej@leon.imf.unit.no:/usr/src/sys/arch/i386/compile/LEON i386


>Description:
	GCC 2.7.1, when released, wants to have va_dcl defined with ...
	to make varargs programs work. Since a lot of people will
	probably want to install GCC 2.7.1 (or even later versions)
	on their NetBSD 1.1 machines, this fix should go into the
	release.  The standard 2.4.5 version distributed with NetBSD
	1.1 doesn't need it, but doesn't get any problems with it either.
>How-To-Repeat:
	Compile/install latest gcc snapshot and try the test suite.
>Fix:
	This patch fixes all varargs files except for sparc.  The sparc
	version had a lot of strange #ifdef's and I don't want to guess
	what is the right thing to do there.  Something *will* need to
	done there also, though.

diff -ru /export/netbsd/tmp/src/sys/arch/i386/include/varargs.h i386/include/varargs.h
--- /export/netbsd/tmp/src/sys/arch/i386/include/varargs.h	Sat Oct 14 02:58:11 1995
+++ i386/include/varargs.h	Thu Oct 26 11:57:21 1995
@@ -47,7 +47,7 @@
 
 typedef _BSD_VA_LIST_	va_list;
 
-#define	va_dcl	int va_alist;
+#define	va_dcl	int va_alist; ...
 
 #define	__va_promote(type) \
 	(((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
diff -ru /export/netbsd/tmp/src/sys/arch/m68k/include/varargs.h m68k/include/varargs.h
--- /export/netbsd/tmp/src/sys/arch/m68k/include/varargs.h	Sat Oct 14 03:06:21 1995
+++ m68k/include/varargs.h	Thu Oct 26 12:42:21 1995
@@ -47,7 +47,7 @@
 
 typedef _BSD_VA_LIST_	va_list;
 
-#define	va_dcl	int va_alist;
+#define	va_dcl	int va_alist; ...
 
 #define	__va_promote(type) \
 	(((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
diff -ru /export/netbsd/tmp/src/sys/arch/pc532/include/varargs.h pc532/include/varargs.h
--- /export/netbsd/tmp/src/sys/arch/pc532/include/varargs.h	Sat Oct 14 03:13:43 1995
+++ pc532/include/varargs.h	Thu Oct 26 12:42:33 1995
@@ -47,7 +47,7 @@
 
 typedef _BSD_VA_LIST_	va_list;
 
-#define	va_dcl	int va_alist;
+#define	va_dcl	int va_alist; ...
 
 #define	__va_promote(type) \
 	(((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
diff -ru /export/netbsd/tmp/src/sys/arch/pmax/include/varargs.h pmax/include/varargs.h
--- /export/netbsd/tmp/src/sys/arch/pmax/include/varargs.h	Sat Oct 14 03:17:16 1995
+++ pmax/include/varargs.h	Thu Oct 26 12:42:37 1995
@@ -47,7 +47,7 @@
 
 typedef _BSD_VA_LIST_	va_list;
 
-#define	va_dcl	int va_alist;
+#define	va_dcl	int va_alist; ...
 
 #define	va_start(ap) \
 	ap = (char *)&va_alist
>Audit-Trail:
>Unformatted: