From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26592 invoked by alias); 28 May 2014 07:26:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 26581 invoked by uid 89); 28 May 2014 07:26:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 28 May 2014 07:26:42 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1WpYFw-0007Mk-Of from Thomas_Schwinge@mentor.com ; Wed, 28 May 2014 00:26:36 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Wed, 28 May 2014 00:26:36 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Wed, 28 May 2014 08:26:34 +0100 From: Thomas Schwinge To: Andrew Pinski , Dominique Dhumieres , Jan Hubicka CC: GCC Patches , Richard Guenther Subject: Re: [PATCH 7/7] Plug ipa-prop escape analysis into gimple_call_arg_flags In-Reply-To: References: <20140526085958.25FE1106@mailhost.lps.ens.fr> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Wed, 28 May 2014 07:26:00 -0000 Message-ID: <87k396qs7u.fsf@kepler.schwinge.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2014-05/txt/msg02396.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1851 Hi! On Mon, 26 May 2014 02:16:35 -0700, Andrew Pinski wrote: > On Mon, May 26, 2014 at 1:59 AM, Dominique Dhumieres = wrote: > > r210901 breaks bootstrap on targets not supporting strnlen, e.g., darwi= n10. > > > > ../../_clean/gcc/lto-cgraph.c:976:68: error: 'strnlen' was not declared= in this scope I'm seeing the same on MinGW, which also doesn't have strnlen (which is a GNU extension). > strnlen should be declared in include/libiberty.h if there is no > declaration as libiberty support is already there. That should be a > simple fix. Like this? --- gcc/config.in +++ gcc/config.in [Regenerate.] --- gcc/configure +++ gcc/configure [Regenerate.] --- gcc/configure.ac +++ gcc/configure.ac @@ -1136,7 +1136,7 @@ CFLAGS=3D"$CFLAGS -I${srcdir} -I${srcdir}/../include = $GMPINC" saved_CXXFLAGS=3D"$CXXFLAGS" CXXFLAGS=3D"$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" gcc_AC_CHECK_DECLS(getenv atol asprintf sbrk abort atof getcwd getwd \ - strsignal strstr stpcpy strverscmp \ + stpcpy strnlen strsignal strstr strverscmp \ errno snprintf vsnprintf vasprintf malloc realloc calloc \ free basename getopt clock getpagesize ffs gcc_UNLOCKED_FUNCS, , ,[ #include "ansidecl.h" diff --git include/libiberty.h include/libiberty.h index 7fd0703..56b8b43 100644 --- include/libiberty.h +++ include/libiberty.h @@ -636,6 +636,10 @@ extern int snprintf (char *, size_t, const char *, ...= ) ATTRIBUTE_PRINTF_3; extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRI= NTF(3,0); #endif =20 +#if defined (HAVE_DECL_STRNLEN) && !HAVE_DECL_STRNLEN +extern size_t strnlen (const char *, size_t); +#endif + #if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP /* Compare version strings. */ extern int strverscmp (const char *, const char *); Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 472 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJThY+lAAoJEK3/DN1sMFFtEc8H/3bocUmTYHzEkh40WEvNQXru 2d6i+oBNbuqG+LTw58SSs8fc1Tqm3pzBOTid0iZBjx01dH+FoPGtdGqWrrF3hFo8 dUBtKWZtJfvhA1LVF5HwhDdv3SCM5F3SAz3+QnFbgjBhIHJgN0WqDUf+x4c6WFh0 t2wP+vkICZOw4Ld5Sp86Wtm8yyyo91mmRYYnnWaRFWkEZp18s6E5Dt2J62BQqjJP kxsBBnIJ0Euif7yAZKyRIFcTqaew0MnVdnk5TWcm/K4pNKK8OIyUe/+2jXfh69t7 As4FzyNCc2FIhjyPdP8DCTboTdzZQZeV8J3KRkxde1XFhOljmGMHOvvkuWwNskc= =fYQJ -----END PGP SIGNATURE----- --=-=-=--