This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Design issues with multiple IRs
On Thu, 06 Dec 2001, Joseph S. Myers wrote:
> It is a bug when any tree-* files depend on any c-* files. Enough
> infrastructure for functions as trees should be language-independent that
> such dependencies do not occur.
>
OK. I will rename the current tree-* files as they're mostly
C-specific. I will also try and put the common code in tree-*.
> > But that doesn't fix the problem of what to do with common code.
> > We will likely have a lot of tree code that can be shared among
> > the different front-ends. Maybe we should start putting common
> > code in tree-* and have C-specific files in c-tree-*?
>
> C tree handling (in c/*.c, say) ought in principle to be lowering
> C-specific trees to language-independent ones (with explicit ordering and
> aliasing constraints represented in the latter).
>
OK. So, in the future, analysis and transformation passes done
on the language-independent trees would go into gcc/* together
with the RTL transformation passes, right?
Thanks. Diego.