Converting RTL passes to the tree-pass.h structure

Paolo Bonzini bonzini@gnu.org
Sat Aug 14 10:18:00 GMT 2004


Yes, a good idea :-) and I've already done and committed some work 
towards it (calling rest_of_compilation via the pass manager, and 
simplifying the code in rest_of_compilation so that passes are better 
separated).  See also the last prerequisite patch at

http://gcc.gnu.org/ml/gcc-patches/2004-08/msg00853.html

Quoting that message, "From now on, conversion of RTL passes to the pass 
manager can be done incrementally starting from the earliest passes. It 
consists of moving code out of rest_of_compilation into a new struct 
tree_opt_pass; if present, remove the open_dump_file and close_dump_file 
calls from rest_of_handle_*: contextually you'll remove the DFI_* 
definition and the initializer for the dump files, respectively in 
tree.h and tree-dump.c."

Do you have a pre-patch? Is it ok to send it (either privately or as a 
RFC to the list)?

Paolo




More information about the Gcc mailing list