On Fri, Jan 13, 2017 at 10:17 PM, David Malcolm <dmalc...@redhat.com> wrote: > This patch poisons strndup (in system.h), as requested in the > discussion of PR bootstrap/78616. > > Successfully bootstrapped®rtested on x86_64-pc-linux-gnu. > > OK for trunk?
Ok. Richard. > gcc/ChangeLog: > PR bootstrap/78616 > * system.h: Poison strndup. > --- > gcc/system.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gcc/system.h b/gcc/system.h > index 0cd58db..c0f08a9 100644 > --- a/gcc/system.h > +++ b/gcc/system.h > @@ -840,7 +840,8 @@ extern void fancy_abort (const char *, int, const char *) > ATTRIBUTE_NORETURN; > #ifndef USES_ISL > #undef calloc > #undef strdup > - #pragma GCC poison calloc strdup > +#undef strndup > + #pragma GCC poison calloc strdup strndup > #endif > > #if !defined(FLEX_SCANNER) && !defined(YYBISON) > -- > 1.8.5.3 >