[PATCH] system.h: Poison strndup (PR bootstrap/78616)
David Malcolm
dmalcolm@redhat.com
Fri Jan 13 20:43:00 GMT 2017
This patch poisons strndup (in system.h), as requested in the
discussion of PR bootstrap/78616.
Successfully bootstrapped®rtested on x86_64-pc-linux-gnu.
OK for trunk?
gcc/ChangeLog:
PR bootstrap/78616
* system.h: Poison strndup.
---
gcc/system.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/system.h b/gcc/system.h
index 0cd58db..c0f08a9 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)
--
1.8.5.3
More information about the Gcc-patches
mailing list