system.h: Poison strndup (PR bootstrap/78616)
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 16 Jan 2017 15:03:41 +0000 (15:03 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 16 Jan 2017 15:03:41 +0000 (15:03 +0000)
gcc/ChangeLog:
PR bootstrap/78616
* system.h: Poison strndup.

From-SVN: r244494

gcc/ChangeLog
gcc/system.h

index c109ca7ae7c6f5c8548f0997c9046fe63387ea7c..b1eeaf3fa9b268451e5bccf677602ef4c3bbe369 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-16  David Malcolm  <dmalcolm@redhat.com>
+
+       PR bootstrap/78616
+       * system.h: Poison strndup.
+
 2017-01-16  Alan Modra  <amodra@gmail.com>
 
        PR target/79098
index 0cd58dba11071b65fdcad9a8822f378e37148913..c0f08a99ed10478d66289a825a8bc14cd8c2c466 100644 (file)
@@ -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)