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: [PATCH] More code refactoring


> 
> 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  <rguenther@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


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