This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to add a new operand to an expression?
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Carlo Wood <carlo at alinoe dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 09 Oct 2003 10:48:05 -0400
- Subject: Re: How to add a new operand to an expression?
- Organization: Red Hat Canada
- References: <20031009144219.GA27901@alinoe.com>
On Thu, 2003-10-09 at 10:42, Carlo Wood wrote:
> I want to add a new operand to the CALL_EXPR.
> In order to do so, I increased the number in tree.def:
>
> DEFTREECODE (CALL_EXPR, "call_expr", 'e', 3) // was 2 before
>
You also need to adjust the memory allocation functions. See make_node.
Diego.