> > Eventually I'll succeed in making tree-optimize.c empty. At least > the pass stuff I'm interested in get's better now.
Decompozing tree-optimize was on my wishlist, too. > > Bootstrapped on x86_64-unknown-linux-gnu, testing in progress. > > Richard. > > 2012-04-12 Richard Guenther <rguent...@suse.de> > > * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency. > * cgraph.h (tree_rest_of_compilation): Remove. > * cgraph.c (cgraph_add_new_function): Move ... > * cgraphunit.c (cgraph_add_new_function): ... here. > (tree_rest_of_compilation): Make static. > (cgraph_expand_function): Do not set cgraph_function_flags_ready. We could try keep in mind that cgraphunit.c is a historical mess and should be also dismantled ;) Majority of logic should go into symbol table (I have symtab.c for that), cgraphbuild or pass management. Honza