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: [C++ PATCH]: Make template args always be vectors


On Thu, 2003-07-31 at 10:57, Nathan Sidwell wrote:
> This patch changes the representation of a set of template arguments to
> always be a vector (rather than either a vector or a list).
> 
> Booted & tested on i686-pc-linux-gnu, ok?

This is all most excellent.

The only thing I wonder about is whether or not it makes sense to have
NULL_TREE be the representation of the empty argument, rather than a
TREE_VEC with zero elements.  That would save a little memory, and I
notice that you're still checking TREE_VEC_LENGTH (...) != 0 in soime
places, so it seems like it wouldn't cost much in complexity either.

What do you think about that?

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


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