diff options
author | Tom Tromey <tromey@redhat.com> | 2014-01-04 21:47:10 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-01-07 09:17:05 -0700 |
commit | 1651e569b457b0cbd6d0a57c09950166c7503f6b (patch) | |
tree | 4bf73ade7b5f671433562a1d3d5ad0662ad9843a /binutils/dllwrap.c | |
parent | b51f1626f645f272f19105c42cdb436381ee6357 (diff) | |
download | fsf-binutils-gdb-1651e569b457b0cbd6d0a57c09950166c7503f6b.zip fsf-binutils-gdb-1651e569b457b0cbd6d0a57c09950166c7503f6b.tar.gz fsf-binutils-gdb-1651e569b457b0cbd6d0a57c09950166c7503f6b.tar.bz2 |
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 <tromey@redhat.com>
* elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
wrappers.
2014-01-07 Tom Tromey <tromey@redhat.com>
* 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 <tromey@redhat.com>
* config/tc-tic30.c (debug): Avoid old VA_* compatibility
wrappers.
Diffstat (limited to 'binutils/dllwrap.c')
-rw-r--r-- | binutils/dllwrap.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/binutils/dllwrap.c b/binutils/dllwrap.c index a6dae90..5f2c803 100644 --- a/binutils/dllwrap.c +++ b/binutils/dllwrap.c @@ -1,6 +1,6 @@ /* dllwrap.c -- wrapper for DLLTOOL and GCC to generate PE style DLLs Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009, - 2011, 2012 Free Software Foundation, Inc. + 2011, 2012, 2014 Free Software Foundation, Inc. Contributed by Mumit Khan (khan@xraylith.wisc.edu). This file is part of GNU Binutils. @@ -144,28 +144,30 @@ display (const char * message, va_list args) 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; display (message, args); - VA_CLOSE (args); + va_end (args); } static void -warn VPARAMS ((const char *format, ...)) +warn (const char *format, ...) { - VA_OPEN (args, format); - VA_FIXEDARG (args, const char *, format); + va_list args; + + va_start (args, format); display (format, args); - VA_CLOSE (args); + va_end (args); } /* Look for the program formed by concatenating PROG_NAME and the |