Questions on tree-inline.c
Andrew Haley
aph@redhat.com
Fri Jun 13 13:02:00 GMT 2003
Richard Kenner writes:
> This was discussed at length. The problem with putting all this in
> the java/ directory is that a great deal of logic would have been
> duplicated and we would require two files to be updated each time a
> change to the inliner was made.
>
> But I thought that's what the language hooks are for? If not, then what
> *are* they for?
gcc has its set of tree nodes in tree.def. Java uses these nodes and
a few of its own. C and C++. however, do not use these but define a
whole bunch of their own. When the tree inliner was added, it used
the C- and C++-specific tree nodes.
> 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.
Andrew.
More information about the Gcc
mailing list