aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-10 22:35:01 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-10 22:35:01 +0000
commit8a0e5115f4da68797687e5ed6963153313893595 (patch)
tree6f7ab7c2c6b65b915be9c5db2c4045b7a0f6dabb /gcc
parent6439a1f2046eabe1ada6fc14f428e85f71369189 (diff)
downloadgcc-8a0e5115f4da68797687e5ed6963153313893595.zip
gcc-8a0e5115f4da68797687e5ed6963153313893595.tar.gz
gcc-8a0e5115f4da68797687e5ed6963153313893595.tar.bz2
system.h (malloc, [...]): #undef token before poisoning it.
* system.h (malloc, realloc, calloc, strdup, bzero, bcmp, rindex): #undef token before poisoning it. From-SVN: r40371
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/system.h7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 226981e..8fdc129 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2001-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * system.h (malloc, realloc, calloc, strdup, bzero, bcmp, rindex):
+ #undef token before poisoning it.
+
+2001-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
* alpha.c (check_float_value): Use memcpy, not bcopy.
* m32r.c (m32r_sched_reorder): Likewise.
diff --git a/gcc/system.h b/gcc/system.h
index 0ea6c3f..4343441 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -594,10 +594,17 @@ typedef char _Bool;
#if (GCC_VERSION >= 3000)
+#undef malloc
+#undef realloc
+#undef calloc
+#undef strdup
#pragma GCC poison malloc realloc calloc strdup
/* Note: not all uses of `bcopy' and `index' (esp. variable names)
have been eliminated. */
+#undef bzero
+#undef bcmp
+#undef rindex
#pragma GCC poison bzero bcmp rindex
#endif /* GCC >= 3.0 */