This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed new tree node for gcc
- To: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Subject: Re: Proposed new tree node for gcc
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 26 Mar 1998 20:12:22 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199803242051.MAA20731@sendai.cygnus.com.>you write:
> We (Per Bothner and myself) propose the definition of a new tree node
> called EXPR_WITH_FILE_LOCATION defined as a 'e' node. The struct
> tree_exp is big enough to provide us with the appropriate storage
> space: `operands[]' can be used to store the encapsulated node,
> `complexity' is big enough to store line (20 bit) and column numbers
> (12 bit); `common.chain' can provide a hook for filename information.
Why not just define a new structure and add it to the tree_node
union? You could make the line/column #s bitfields.
jeff