This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] c-decl.c, stor-layout.c: Use VEC for pending_sizes.
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 31 May 2006 16:20:26 -0700
- Subject: Re: [lto] c-decl.c, stor-layout.c: Use VEC for pending_sizes.
- References: <200605312012.k4VKCCaY010855@sparrowhawk.codesourcery.com>
Kazu Hirata wrote:
> Hi,
>
> Attached is a patch to use VEC for pending_sizes.
>
> One of the things we'd like to do on the LTO branch is to eliminate
> TREE_LIST. Without this patch, pending_sizes uses TREE_LIST.
>
> This patch converts pending_sizes to use the VEC API. Note that the
> order of elements have not been changed. A bunch of tree_cons
> followed by nreverse is the same as VEC_safe_push followed by
> forward VEC_iterate.
>
> Tested on x86_64-pc-linux-gnu. OK to apply to the LTO branch?
OK. This is also OK for 4.3, once in Stage 1.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713