Commit 8a0e5115 by Kaveh R. Ghazi Committed by Kaveh Ghazi

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
parent 6439a1f2
2001-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 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. * alpha.c (check_float_value): Use memcpy, not bcopy.
* m32r.c (m32r_sched_reorder): Likewise. * m32r.c (m32r_sched_reorder): Likewise.
......
...@@ -594,10 +594,17 @@ typedef char _Bool; ...@@ -594,10 +594,17 @@ typedef char _Bool;
#if (GCC_VERSION >= 3000) #if (GCC_VERSION >= 3000)
#undef malloc
#undef realloc
#undef calloc
#undef strdup
#pragma GCC poison malloc realloc calloc strdup #pragma GCC poison malloc realloc calloc strdup
/* Note: not all uses of `bcopy' and `index' (esp. variable names) /* Note: not all uses of `bcopy' and `index' (esp. variable names)
have been eliminated. */ have been eliminated. */
#undef bzero
#undef bcmp
#undef rindex
#pragma GCC poison bzero bcmp rindex #pragma GCC poison bzero bcmp rindex
#endif /* GCC >= 3.0 */ #endif /* GCC >= 3.0 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment