This is the mail archive of the
mailing list for the GCC project.
Re: [lto] Stop using void_list_node in equality comparisons.
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 14 Aug 2006 09:53:46 -0700
- Subject: Re: [lto] Stop using void_list_node in equality comparisons.
- References: <200608050051.k750pCHe005712@sparrowhawk.codesourcery.com>
Kazu Hirata wrote:
> This patch changes those functions to expect void_type_node in
> TREE_VALUE of the last TREE_LIST node. This way, it is OK for one of
> my conversion patches to introduce TYPE_ARG_TYPES that ends with a
> TREE_LIST node (!= void_list_node) whose TREE_VALUE is still
Why do you want to do that? The point of void_list_node is that it
reduces waste. Almost every function will have a parameter type list
that ends with void, so it is good to share the node.
(Of course, a better representation would just be to have a varargs_p
bit on the FUNCTION_TYPE; it's goofy to have a void type at the end of
the list. But, that would be another major cleanup, so we don't want to
do it now.)
(650) 331-3385 x713