Subject: Re: fix stdarg for gcc3
To: None <M.Drochner@fz-juelich.de>
From: Simon Burge <simonb@wasabisystems.com>
List: port-mips
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_* ]
#else
#include <machine/stdarg.h>
#endif
?
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/