From: David Malcolm Date: Mon, 16 Jan 2017 15:03:41 +0000 (+0000) Subject: system.h: Poison strndup (PR bootstrap/78616) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=436afa16af10297db12680519f57800c0891bbe5;p=gcc.git system.h: Poison strndup (PR bootstrap/78616) gcc/ChangeLog: PR bootstrap/78616 * system.h: Poison strndup. From-SVN: r244494 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c109ca7ae7c..b1eeaf3fa9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-16 David Malcolm + + PR bootstrap/78616 + * system.h: Poison strndup. + 2017-01-16 Alan Modra PR target/79098 diff --git a/gcc/system.h b/gcc/system.h index 0cd58dba110..c0f08a99ed1 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)