system.h: Poison strndup (PR bootstrap/78616)

gcc/ChangeLog:
	PR bootstrap/78616
	* system.h: Poison strndup.

From-SVN: r244494
This commit is contained in:
David Malcolm 2017-01-16 15:03:41 +00:00 committed by David Malcolm
parent b497fbc10a
commit 436afa16af
2 changed files with 7 additions and 1 deletions

View 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

View 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)