This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C++] Get rid of TREE_CHAIN use for TREE_VEC (NON_DEFAULT_TEMPLATE_ARGS_COUNT)
- From: Mike Stump <mikestump at comcast dot net>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: Richard Guenther <rguenther at suse dot de>, gcc-patches at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Fri, 17 Aug 2012 11:03:13 -0700
- Subject: Re: [PATCH][C++] Get rid of TREE_CHAIN use for TREE_VEC (NON_DEFAULT_TEMPLATE_ARGS_COUNT)
- References: <alpine.LNX.2.00.1208171318190.28649@zhemvz.fhfr.qr> <502E4DF6.2080305@oracle.com>
On Aug 17, 2012, at 6:58 AM, Paolo Carlini wrote:
> On 08/17/2012 01:26 PM, Richard Guenther wrote:
>> This gets rid of this field, pushing it into a short int in tree_base
>> (hopefully 2^16 non-defaulted template args are enough ...).
> Honestly, I don't think it's a trivial issue.
Love to hear from Jason, but, my take would be 2^16 should be enough for anyone. I think long before people hit that limit, they would merely aggregate arguments into classes and structures. I think in another 20-80 years, we might want to bump it back up to 32 bits, but... I think we can safely wait until we get a compelling bug report for it.