This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, lto-plugin]: Avoid "warning: implicit declaration of function âasprintfâ when building lto-plugin.o"


Hello!

We have to enable OS extensions (GNU_SOURCE) to use asprintf.

2015-07-01  Uros Bizjak  <ubizjak@gmail.com>

    * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
    * configure: Regenerate.
    * config.h.in: Ditto.

Bootstrapped on x86_64-linux-gnu.

OK for mainline?

Uros.

Index: configure.ac
===================================================================
--- configure.ac        (revision 225240)
+++ configure.ac        (working copy)
@@ -9,6 +9,7 @@
    [specify the directory where to find libiberty [../libiberty]])],
  [], with_libiberty=../libiberty)
AC_SUBST(with_libiberty)
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AC_SYS_LARGEFILE
ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]