Dino Puller wrote on 10/27/06 11:25:

The idea is a bit complex. Anyway the fold function has no one only
return so i can't compare input tree with output one, and it's called
from a lot of others functions of others files.
>
Of course you can. fold() does not modify the input tree anymore. Just write a wrapper for it which calls the real fold(). Rename fold() to something else and that should be all you need to do.

Now, if you want to do this on a per-pass manner, then it would probably require a bit more code. In that case, you'd have to write entry/exit code in passes.c:execute_one_pass.

Even if i find the right places to put my code, how can i output
collected infos?

Collect it in a buffer and dump it at the end of compilation. Check in final.c:rest_of_handle_final.

Reply via email to