aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-01-04 21:47:10 -0700
committerTom Tromey <tromey@redhat.com>2014-01-07 09:17:05 -0700
commit1651e569b457b0cbd6d0a57c09950166c7503f6b (patch)
tree4bf73ade7b5f671433562a1d3d5ad0662ad9843a /bfd
parentb51f1626f645f272f19105c42cdb436381ee6357 (diff)
downloadgdb-1651e569b457b0cbd6d0a57c09950166c7503f6b.zip
gdb-1651e569b457b0cbd6d0a57c09950166c7503f6b.tar.gz
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 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-xtensa.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 83a9891..894b0b9 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-07 Tom Tromey <tromey@redhat.com>
+
+ * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
+ wrappers.
+
2014-01-03 Nick Clifton <nickc@redhat.com>
PR binutils/16199
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 75ccefe..5a08062 100644
--- a/bfd/elf32-xtensa.c
+++ b/bfd/elf32-xtensa.c
@@ -1,5 +1,5 @@
/* Xtensa-specific support for 32-bit ELF.
- Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+ Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -2161,9 +2161,9 @@ vsprint_msg (const char *origmsg, const char *fmt, int arglen, ...)
static char *message = NULL;
bfd_size_type orig_len, len = 0;
bfd_boolean is_append;
+ va_list ap;
- VA_OPEN (ap, arglen);
- VA_FIXEDARG (ap, const char *, origmsg);
+ va_start (ap, arglen);
is_append = (origmsg == message);
@@ -2180,7 +2180,7 @@ vsprint_msg (const char *origmsg, const char *fmt, int arglen, ...)
memcpy (message, origmsg, orig_len);
vsprintf (message + orig_len, fmt, ap);
}
- VA_CLOSE (ap);
+ va_end (ap);
return message;
}