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: [lto] c-decl.c, stor-layout.c: Use VEC for pending_sizes.


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


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