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 c109ca7..b1eeaf3 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 0cd58db..c0f08a9 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)