xvasprintf.c: New file.
authorUros Bizjak <ubizjak@gmail.com>
Thu, 11 Dec 2014 08:15:37 +0000 (09:15 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 11 Dec 2014 08:15:37 +0000 (09:15 +0100)
commit01ca36af914385acfc864adfae6923768581888a
tree73160bf616558a6ddfc1ac73519216a81c9d0e8a
parentc168eab92cc42d3c995cc0a1188e1554ebbcd63a
xvasprintf.c: New file.

* xvasprintf.c: New file.
* vprintf-support.h: Likewise.
* vprintf-support.c: Likewise.
* Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
(REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
(vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
(vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
* functions.texi: Regenerate.
* vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.

include/ChangeLog:

* libiberty.h (xvasprintf): Declare.

libcpp/ChangeLog:

* directives.c (cpp_define_formatted): Use xvasprintf.

Co-Authored-By: Ben Elliston <bje@au.ibm.com>
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r218618
include/ChangeLog
include/libiberty.h
libcpp/ChangeLog
libcpp/directives.c
libiberty/ChangeLog
libiberty/Makefile.in
libiberty/functions.texi
libiberty/vasprintf.c
libiberty/vprintf-support.c [new file with mode: 0644]
libiberty/vprintf-support.h [new file with mode: 0644]
libiberty/xvasprintf.c [new file with mode: 0644]