This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Cleanup some remains from the obstack days.
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Steven Bosscher <s dot bosscher at student dot tudelft dot nl>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 06 Apr 2003 12:55:00 -0700
- Subject: Re: [PATCH] Cleanup some remains from the obstack days.
- References: <1049640992.724.91.camel@steven>
Steven Bosscher <s dot bosscher at student dot tudelft dot nl> writes:
> This seemed like a nice cleanup. Deletes ~120 lines.
>
> OBSTACK_CHUNK_ALLOC and OBSTACK_CHUNK_FREE are never redefined
> by any target, so I removed them. Targets still can redefine
> the default functions by simply redefining obstack_chunk_alloc
> and obstack_chunk_free, which are in defaults.h.
> OBSTACK_CHUNK_SIZE was never redefined anywhere either, so I
> moved it to defaults.h.
>
> Now gcc_obstack_init can be a define instead of a function that
> is duplicated in three different source files. It is not a target
> default, but because every file that uses gcc_obstack_init depends
> on defaults.h, and since the obstack_chunk_* defines are there as
> well, it seemed like the least unappropriate place to define it.
>
> Also kills an unused function from tree.c, and cleans up some stuff
> in tree.h.
>
> Bootstrapped on i586-pc-linux-gnu. OK for mainline after
> regtesting?
OK with the correction you posted later.
zw