> Currently the job to drive compilation process is implemented in > cgraphunit and passmanager. I am leaning to plan to do as much work as
BTW for a while I think that name of cgraphunit outlived its original meaning. Just as historical note, it was introduced so because some bits wasn't possible to put into cgraph.c because frontends not converted to function-at-a-time didn't link then (by not defining walk_tree, for instance). So I split cgraph into stuff required by middle end linked in unconditionally and stuff required to drive unit-at-a-time compilation linked only to unit-at-a-time frontends. It probably should be moved to driver.c after unrelated cgraph/passmanager bits are pulled out of that file. Honza