diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/system.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 226981e7ab6..8fdc1291794 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 0ea6c3fc67e..43434419034 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 */ |