From: Thomas Schwinge <thomas@codesourcery.com>
To: Dominique Dhumieres <dominiq@lps.ens.fr>,
Jan Hubicka <hubicka@ucw.cz>,
GCC Patches <gcc-patches@gcc.gnu.org>
Cc: Andrew Pinski <pinskia@gmail.com>,
Richard Guenther <richard.guenther@gmail.com>,
Jan Hubicka <hubicka@ucw.cz>
Subject: Re: [PATCH 7/7] Plug ipa-prop escape analysis into gimple_call_arg_flags
Date: Tue, 03 Jun 2014 09:56:00 -0000 [thread overview]
Message-ID: <87oayami5b.fsf@kepler.schwinge.homeip.net> (raw)
In-Reply-To: <20140528215531.GA30961@kam.mff.cuni.cz>
[-- Attachment #1: Type: text/plain, Size: 2422 bytes --]
Hi!
Ping -- OK to commit to trunk?
On Wed, 28 May 2014 23:55:31 +0200, Jan Hubicka <hubicka@ucw.cz> wrote:
> > On Mon, 26 May 2014 02:16:35 -0700, Andrew Pinski <pinskia@gmail.com> wrote:
> > > On Mon, May 26, 2014 at 1:59 AM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
> > > > r210901 breaks bootstrap on targets not supporting strnlen, e.g., darwin10.
> > > >
> > > > ../../_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?
>
> This looks good to me (thoguh strnlen is posix). I can not approve the patch
> but I would preffer it over just hand implementing strnlen there (that is easy,
> too)
Patch is also considered good by testers in
<https://gcc.gnu.org/PR61334>.
> > --- gcc/config.in
> > +++ gcc/config.in
> > [Regenerate.]
> > --- gcc/configure
> > +++ gcc/configure
> > [Regenerate.]
> > --- gcc/configure.ac
> > +++ gcc/configure.ac
> > @@ -1136,7 +1136,7 @@ CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
> > saved_CXXFLAGS="$CXXFLAGS"
> > CXXFLAGS="$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_PRINTF(3,0);
> > #endif
> >
> > +#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üße,
Thomas
[-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --]
next prev parent reply other threads:[~2014-06-03 9:56 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 9:00 Dominique Dhumieres
2014-05-26 9:16 ` Andrew Pinski
2014-05-26 9:29 ` Christophe Lyon
2014-05-26 16:32 ` Jan Hubicka
2014-05-28 7:26 ` Thomas Schwinge
2014-05-28 21:55 ` Jan Hubicka
2014-06-03 9:56 ` Thomas Schwinge [this message]
2014-06-10 6:48 ` Commit policy? " Thomas Schwinge
2014-06-10 6:54 ` Andrew Pinski
2014-06-10 9:07 ` Richard Biener
-- strict thread matches above, loose matches on Subject: below --
2014-05-21 13:31 [PATCH 0/7] ipa-prop escape analysis Martin Jambor
2014-05-21 13:31 ` [PATCH 7/7] Plug ipa-prop escape analysis into gimple_call_arg_flags Martin Jambor
2014-05-21 14:27 ` Richard Biener
2014-05-22 12:49 ` Martin Jambor
2014-05-22 13:34 ` Richard Biener
2014-05-22 15:24 ` Jan Hubicka
2014-05-22 15:36 ` Richard Biener
2014-05-22 18:11 ` Jan Hubicka
2014-05-23 10:03 ` Richard Biener
2014-05-23 22:29 ` Jan Hubicka
2014-05-24 7:39 ` Jan Hubicka
2014-05-26 13:03 ` Rainer Orth
2014-05-27 17:51 ` Jan Hubicka
2014-05-27 18:16 ` Rainer Orth
2014-05-26 1:01 ` Jan Hubicka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oayami5b.fsf@kepler.schwinge.homeip.net \
--to=thomas@codesourcery.com \
--cc=dominiq@lps.ens.fr \
--cc=gcc-patches@gcc.gnu.org \
--cc=hubicka@ucw.cz \
--cc=pinskia@gmail.com \
--cc=richard.guenther@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).