This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cleanup some remains from the obstack days.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]