Questions on tree-inline.c
Jason Merrill
jason@redhat.com
Sat Jun 14 01:10:00 GMT 2003
On Fri, 13 Jun 03 09:23:39 EDT, kenner@vlsi1.ultra.nyu.edu (Richard Kenner) wrote:
> > And why do we have two tree nodes that are essentially the same
> > except for the name (like GOTO_EXPR and GOTO_STMT, RETURN_EXPR and
> > RETURN_STMT, etc)?
>
> History.
>
> But how? Why would somebody add a new node that was identical to an old one?
Because I was trying to represent C++ templates in a form as close to the
source as possible, and _STMT nodes have slightly special properties, so it
was simpler to create new ones for all C++ statement types. I'm sorry
those same tree codes were reused for functions-as-trees in C++ and then C.
Jason
More information about the Gcc
mailing list