This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Cleanup/simplify memory.c
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org, Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 1 Oct 2005 12:47:21 +0200
- Subject: Re: [PATCH] Cleanup/simplify memory.c
- References: <20051001102906.GC8983@devserv.devel.redhat.com>
On Saturday 01 October 2005 12:29, Jakub Jelinek wrote:
> 2005-10-01 Jakub Jelinek <jakub@redhat.com>
>
> * runtime/memory.c (malloc_t): Remove.
> (GFC_MALLOC_MAGIC, HEADER_SIZE, DATA_POINTER, DATA_HEADER): Remove.
> (mem_root, runtime_cleanup, malloc_with_header): Remove.
> (internal_malloc_size): Use just get_mem if size != 0, return NULL
> otherwise.
> (internal_free): Just free if non-NULL.
> (internal_realloc_size): Remove debugging stuff.
> (allocate_size): Use malloc directly, remove debugging stuff.
> (deallocate): Use free directly, fix error message wording.
This is also OK.
You like pushing stage3 boundaries, don't you? ;-)
Gr.
Steven