This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa mudflap] C++ front-end hooks
Hi -
On Tue, Jan 14, 2003 at 01:28:06AM -0500, Jason Merrill wrote:
> [...]
> > Compiling new entirely synthesized routines is outside the scope of the
> > GENERIC framework, and involves partially cloning the behavior of an
> > individual front-end.
>
> I don't think it should should be outside the scope of GENERIC. There
> ought to be a language-independent way of assembling a function. [...]
Yes, perhaps. The way I understand things work now is that GENERIC is
used to do tree rewriting transforms/optimizations, and then the resulting
trees are returned to the front-end. The front-end plays a little more,
then calls expanders to generate RTL. It's as if the GENERIC stuff is
not a real layer, just a subroutine of front-ends. If direct
GENERIC-layer compilation of new synthetic functions was desirable
in the long run, then the above control flow would first have to be
changed for ordinary functions.
- FChE