diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-03-10 04:20:03 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-03-10 04:20:03 +0000 |
commit | f4ce9d906750bad87642454a1cbf8a1b2c2261b0 (patch) | |
tree | 9c3fac38ed4b4a8e389d091650ec0193e59385b9 /gcc/gensupport.c | |
parent | 0eac29848b3a5bee12b6f8ae6c64c82a9c0f61b1 (diff) | |
download | gcc-f4ce9d906750bad87642454a1cbf8a1b2c2261b0.zip gcc-f4ce9d906750bad87642454a1cbf8a1b2c2261b0.tar.gz gcc-f4ce9d906750bad87642454a1cbf8a1b2c2261b0.tar.bz2 |
server.c (load_data, run_shell): Use xmalloc, xrealloc & xcalloc in lieu of malloc, realloc & calloc.
* fixinc/server.c (load_data, run_shell): Use xmalloc, xrealloc &
xcalloc in lieu of malloc, realloc & calloc.
* gencheck.c (xmalloc): Use really_call_malloc, not malloc.
* gengenrtl.c (xmalloc): Likewise.
* gensupport.c (xcalloc, xrealloc, xmalloc): Use the
really_call_* memory allocation routines.
* stmt.c (check_for_full_enumeration_handling): Use
really_call_calloc, not calloc.
* system.h (really_call_malloc, really_call_calloc,
really_call_realloc): Define.
(malloc, realloc, calloc, strdup, bzero, bcmp, rindex): Poison.
f:
* fini.c (main): Use really_call_malloc, not malloc.
From-SVN: r40360
Diffstat (limited to 'gcc/gensupport.c')
-rw-r--r-- | gcc/gensupport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 4d7c258..6bad18e 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -871,7 +871,7 @@ xcalloc (nelem, elsize) if (nelem == 0 || elsize == 0) nelem = elsize = 1; - newmem = calloc (nelem, elsize); + newmem = really_call_calloc (nelem, elsize); if (!newmem) fatal ("virtual memory exhausted"); return (newmem); @@ -884,9 +884,9 @@ xrealloc (old, size) { register PTR ptr; if (old) - ptr = (PTR) realloc (old, size); + ptr = (PTR) really_call_realloc (old, size); else - ptr = (PTR) malloc (size); + ptr = (PTR) really_call_malloc (size); if (!ptr) fatal ("virtual memory exhausted"); return ptr; @@ -896,7 +896,7 @@ PTR xmalloc (size) size_t size; { - register PTR val = (PTR) malloc (size); + register PTR val = (PTR) really_call_malloc (size); if (val == 0) fatal ("virtual memory exhausted"); |