From d57fce08454d2fba67cbbd6b4ec29d4d74bc8d2b Mon Sep 17 00:00:00 2001 From: dmalcolm Date: Mon, 16 Jan 2017 15:03:41 +0000 Subject: [PATCH] system.h: Poison strndup (PR bootstrap/78616) gcc/ChangeLog: PR bootstrap/78616 * system.h: Poison strndup. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244494 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/system.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.11.4.GIT