This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Hooking of CFG
Lasse Bigum <Lasse@hardwareonline.dk> writes:
> > If you mean: is there an API for adding CFG hooks such as you
> > describe, then the answer is no.
>
> We have, however, been thinking about just implementing another pass on
> the GIMPLE tree representation, once the Control Flow Graph have been
> created.
>
> Creating another pass is also an option, right? Or have I misunderstood
> something. Adding another pass just seems a lot easier than having to
> modify the GCC code in more complex ways.
Yes, you can create another pass. This involves editing the source
code a bit, but it is fairly straightforward.
Ian