Subject: Re: fix stdarg for gcc3
To: None <>
From: Simon Burge <>
List: tech-toolchain
Date: 10/25/2003 01:18:22
Matthias Drochner wrote:

> This is a multipart MIME message.
> --==_Exmh_30750117745000
> Content-Type: text/plain; charset=us-ascii
> Hi -
> is the appended patch OK?
> It fixes variable argument list passing for me.
> It might even fix the 64-bit ABI case -- at least it would
> be the compiler's responsibility then...

That sure looks correct.  I wonder if all ports should
just use the __builtin_* for stdarg/varargs?  Maybe
something like /usr/include/stdarg.h could be a symlink
to /usr/include/sys/stdarg.h which is more or less:

	#ifdef __lint__

		[ use some dummy defintions ]

	#elif __GNUC_PREREQ__(3, 0)

		[ use __builtin_* ]

	#include <machine/stdarg.h>


Simon Burge                            <>
NetBSD Support and Service: