diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-11-17 04:16:55 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-11-17 04:16:55 +0000 |
commit | dd3b81b4218512cfedc271dfde65c6011b6aefe9 (patch) | |
tree | c69e8960a6ca95cfcc6c3cf270e4d450862696db /gcc/f/malloc.c | |
parent | 5074c1fe97ed929e8bdbf49600bbe83c3722a5ec (diff) | |
download | gcc-dd3b81b4218512cfedc271dfde65c6011b6aefe9.zip gcc-dd3b81b4218512cfedc271dfde65c6011b6aefe9.tar.gz gcc-dd3b81b4218512cfedc271dfde65c6011b6aefe9.tar.bz2 |
mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not malloc/realloc.
* mcore.c (mcore_expand_prolog): Call xmalloc/xrealloc, not
malloc/realloc.
* cpplib.c (glue_header_name): Likewise.
* fixincl.c (run_compiles, start_fixer): Likewise.
* fixlib.c (load_file_data): Likewise.
* mkdeps.c (munge): Likewise.
f:
* malloc.c (malloc_init): Call xmalloc, not malloc.
From-SVN: r37511
Diffstat (limited to 'gcc/f/malloc.c')
-rw-r--r-- | gcc/f/malloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/f/malloc.c b/gcc/f/malloc.c index b0d31af..032c2bf 100644 --- a/gcc/f/malloc.c +++ b/gcc/f/malloc.c @@ -140,8 +140,7 @@ malloc_init () { if (malloc_reserve_ != NULL) return; - malloc_reserve_ = malloc (20 * 1024); /* In case of crash, free this first. */ - assert (malloc_reserve_ != NULL); + malloc_reserve_ = xmalloc (20 * 1024); /* In case of crash, free this first. */ } /* malloc_pool_display -- Display a pool |