This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Mon, 13 Jan 2003 21:21:22 -0500, "Frank Ch. Eigler" <fche@redhat.com> wrote:

> 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.

Yes.

> 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.

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.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]