From 1651e569b457b0cbd6d0a57c09950166c7503f6b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 4 Jan 2014 21:47:10 -0700 Subject: remove VA_* from binutils This removes the last uses of the obsolete VA_* macros from binutils. All the binutils and bfd changes were tested by rebuilding. I didn't rebuild the gas change but I think it is obviously correct. 2014-01-07 Tom Tromey * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility wrappers. 2014-01-07 Tom Tromey * bucomm.c (fatal, non_fatal): Replace obsolete VA_* macros with stdarg macros. * dlltool.c (inform): Replace obsolete VA_* macros with stdarg macros. * dllwrap.c (inform, warn): Replace obsolete VA_* macros with stdarg macros. 2014-01-07 Tom Tromey * config/tc-tic30.c (debug): Avoid old VA_* compatibility wrappers. --- binutils/dlltool.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'binutils/dlltool.c') diff --git a/binutils/dlltool.c b/binutils/dlltool.c index 0da0011..b540975 100644 --- a/binutils/dlltool.c +++ b/binutils/dlltool.c @@ -1,6 +1,6 @@ /* dlltool.c -- tool to generate stuff for PE style DLLs Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc. + 2005, 2006, 2007, 2008, 2009, 2011, 2012, 2014 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -881,17 +881,18 @@ dlltmp (char **buf, const char *fmt) } static void -inform VPARAMS ((const char * message, ...)) +inform (const char * message, ...) { - VA_OPEN (args, message); - VA_FIXEDARG (args, const char *, message); + va_list args; + + va_start (args, message); if (!verbose) return; report (message, args); - VA_CLOSE (args); + va_end (args); } static const char * -- cgit v1.1