This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Convert some varray stacks into vector stacks
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 25 Nov 2004 12:40:38 -0500
- Subject: Re: Convert some varray stacks into vector stacks
- Organization: Red Hat Canada
- References: <1101253034.5496.19.camel@localhost.localdomain> <41A5FC67.3080207@codesourcery.com>
On Thu, 2004-11-25 at 15:38 +0000, Nathan Sidwell wrote:
> > Perhaps we could change that when we allocate the vector the first time?
> > Something like 'vec = VEC_alloc (T, size, HEAP)'.
> we'd also have to amend VEC_safe_push, VEC_safe_insert and VEC_reserve.
>
Hmm, OK, not too pretty but I guess I wouldn't mind too much. There's
only so much we can do here :)
> Of course this would be 4.1 material, so we don't have to go rushing into
> things.
>
Agreed.
Diego.