This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: implement fdiagnostics-print-source-range-info
On Fri, 7 Aug 2009, Manuel López-Ibáñez wrote:
> 2009/8/5 Joseph S. Myers <joseph@codesourcery.com>:
> >
> > Fail the same way as xmalloc. The right way is probably to add xasprintf
> > and xvasprintf functions to libiberty (gengtype has its own xasprintf
> > function; gnulib has xasprintf and xvasprintf so there's precedent for
> > those names) and make the existing callers use them.
>
> I implemented xasprintf and xvasprintf within asprintf.c and
> vasprintf.c, however, I am afraid the attached patch is not enough,
> since it seems in x86_64-linux-gnu those files are not actually
> compiled into libiberty.a.Probably I have to modify some configure or
> Makefile magic stuff. Any hints on this?
# NOTE: If you add new files to the library, add them to this list
# (alphabetical), and add them to REQUIRED_OFILES, or
# CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps"
# to build the new rules.
(You should also regenerate functions.texi, as that's checked in.)
--
Joseph S. Myers
joseph@codesourcery.com