This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH]: Make template args always be vectors
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Mark Mitchell <mitchell at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: 31 Jul 2003 16:39:48 -0700
- Subject: Re: [C++ PATCH]: Make template args always be vectors
- References: <3F295875.1070502@codesourcery.com>
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