This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Tree Browser
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: Daniel Berlin <dan at cgsoftware dot org>
- Cc: gcc-patches at gcc dot gnu dot org, dnovillo at redhat dot com
- Date: Sat, 2 Nov 2002 21:47:02 +0100
- Subject: Re: [tree-ssa] Tree Browser
- References: <20021030235917.GA22774@gauvain.u-strasbg.fr> <20021101212907.GA9805@cgsoftware.org>
On Fri, Nov 01, 2002 at 01:29:07PM -0800, Daniel Berlin wrote:
> getline is a libc only thing.
> Though i have extracted code from sed (I'm sure it's around elsewhere)
> that emulates it in a portable way.
> I just static'd it and threw it at the top of the tree browser.
thanks for your help Dan.
>
> Also, do you hvae code that defines PREV_STMT and UP_STMT, or is this
> just "pie in the sky".
You're right ;-)
For PREV_STMT there's already code in tree-dchain.[ch]. However it will
modify the structure of the tree for storing PREV information...
There's also Jason's proposal for storing this information in other tree
nodes: for example we could choose an existing node and use its fields
for storing PREV/UP information, or just create a new node with no other
purpose than storing this information.
Another solution is to create specific fields "prev" and "parent"
(as for "chain" field), but this will increase the size of the tree
representation.