aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-03-13 19:55:18 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-03-13 19:55:18 +0000
commit77b8455903d53df9a0b509540b91d4883351de96 (patch)
treecec15c76763f1279c5f32a18f037a9d7b885b0f9 /gcc
parentf68147f702b0723df728592dfcd667de21ed4d3d (diff)
downloadgcc-77b8455903d53df9a0b509540b91d4883351de96.zip
gcc-77b8455903d53df9a0b509540b91d4883351de96.tar.gz
gcc-77b8455903d53df9a0b509540b91d4883351de96.tar.bz2
system.h (malloc, [...]): Only poison these tokens when IN_GCC is defined.
* system.h (malloc, realloc, calloc, strdup): Only poison these tokens when IN_GCC is defined. From-SVN: r40443
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/system.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef79224..85ca711 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * system.h (malloc, realloc, calloc, strdup): Only poison these
+ tokens when IN_GCC is defined.
+
Tue Mar 13 14:38:44 CET 2001 Jan Hubicka <jh@suse.cz>
* i386.md (abs?f expander): Support SSE case.
diff --git a/gcc/system.h b/gcc/system.h
index a18e34c..24abf91 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -584,11 +584,17 @@ typedef char _Bool;
#if (GCC_VERSION >= 3000)
+/* Note autoconf checks for prototype declarations and includes
+ system.h while doing so. Only poison these tokens if actually
+ compiling gcc, so that the autoconf declaration tests for malloc
+ etc don't spuriously fail. */
+#ifdef IN_GCC
#undef malloc
#undef realloc
#undef calloc
#undef strdup
#pragma GCC poison malloc realloc calloc strdup
+#endif /* IN_GCC */
/* Note: not all uses of `bcopy' and `index' (esp. variable names)
have been eliminated. */