[tree-ssa mudflap] C++ front-end hooks

Frank Ch. Eigler fche@redhat.com
Tue Jan 14 02:21:00 GMT 2003


Hi -

jason wrote:

> Why can't the __mf_register stuff be handled in language-independent code?
> You should be able to write the function directly in GENERIC.

I assume you're talking about the *_finish_file related calls.
These __mf_register calls, generated for all interesting static objects,
could indeed be written in GENERIC instead, but that wouldn't quite be
enough.  These functions need to be called from a global initialization
context and not as an in-place modification of functions being compiled.
Compiling new entirely synthesized routines is outside the scope of the
GENERIC framework, and involves partially cloning the behavior of an
individual front-end.  So, I moved that code into the new
front-end-specific files.

- FChE



More information about the Gcc-patches mailing list