This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: egcs-980315, gen*.c system.h and fatal() using stdarg/varargs
- From: Richard Henderson <rth at cygnus dot com>
- Date: Thu, 26 Mar 1998 09:38:58 -0800
- Cc: law at cygnus dot com, egcs at cygnus dot com
- References: <199803241750.MAA00882@caip.rutgers.edu>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Tue, Mar 24, 1998 at 12:50:32PM -0500, Kaveh R. Ghazi wrote:
> #if !defined(HAVE_VPRINTF) && !defined(vfprintf)
> # ifdef HAVE_DOPRNT
> # define vfprintf(stream, format, args) _doprnt(format, args, stream)
> # else
> # define vfprintf(stream, format, args) \
> do { \
> HOST_WIDE_INT a0 = va_arg(args, HOST_WIDE_INT); \
> HOST_WIDE_INT a1 = va_arg(args, HOST_WIDE_INT); \
Ug. I would much prefer to define a proper vfprintf function than
to much with this kind of nonsense. If this is done by just doing
the argument parsing bits of vfprintf and fobing the actual formatting
off to fprintf, this should not be that large or complicated.
r~