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: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 25 Mar 1998 16:31:15 -0800
- Cc: egcs at cygnus dot com
- References: <199803242051.MAA20731@sendai.cygnus.com.>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Tue, Mar 24, 1998 at 12:51:48PM -0800, Alexandre Petit-Bianco wrote:
> 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.
While I think that the idea is good, doing such gross things with
overloading `common.chain' is very bad. Defining a new struct is
not so difficult, and should be the way this is accomplished.
r~