CFG transparent RTL expansion: * Makefile.in (cfgexpand.o): New object file. (builtins.o): Add dependency on basic-block.h * builtins.c: Include basic-block.h (entry_of_function): New function. (expand_builtin_apply_args, expand_builtin_saveargs): Use it. * cfgexpand.c: New file. * expr.c (execute_expand, pass_expand): Kill. * pass.c (rest_of_compilation): Do not build CFG unless called from coverage code. * tree-cfg.c (delete_tree_cfg): Rename to.. (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself. * tree-flow.h (delete_tree_cfg_annotations): Declare. (dleete_tree_cfg): Kill. * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill. (execute_del_cfg): Rename to... (execute_free_datastructures): This one... (pass_del_cfg): Rename to... (pass_free_datastructures): ... this one; Do not kill PROP_cfg. (init_tree_optimization_passes): Make cfg build and profiling to happen unconditionally. * tree-mudflap.c (mf_decl_cache_locals): Skip labels before inserting the cache variables. * tree-mudflap.c: Include headers to make basic_block available. Move functions around such that related functions are near each other. Add prototypes for all static functions. Add comments briefly explaining what IR the mudflap1 and mudflap2 work on and what they do. (mudflap_function_decls): Rename to execute_mudflap_function_decls. (mudflap_function_ops): Rename to execute_mudflap_function_ops. (pass_mudflap_1, pass_mudflap_2): Update. (mf_decl_cache_locals): Make it work on the CFG instead of the saved function tree. (mf_build_check_statement_for): Make it work on the CFG. (mf_xform_derefs_1): Likewise. Cleanup code style. (mf_xform_derefs): Likewise. * tree-cfg.c (label_to_block): Invent the label destination for undefined labels. (cleanup_dead_labels): Update table in the case label_to_block added new label. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83385 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/ChangeLog 51 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 5 additions, 2 deletionsgcc/Makefile.in
- gcc/builtins.c 10 additions, 2 deletionsgcc/builtins.c
- gcc/cfgexpand.c 480 additions, 0 deletionsgcc/cfgexpand.c
- gcc/expr.c 0 additions, 89 deletionsgcc/expr.c
- gcc/passes.c 14 additions, 8 deletionsgcc/passes.c
- gcc/predict.def 3 additions, 0 deletionsgcc/predict.def
- gcc/tree-cfg.c 44 additions, 24 deletionsgcc/tree-cfg.c
- gcc/tree-flow.h 4 additions, 1 deletiongcc/tree-flow.h
- gcc/tree-mudflap.c 445 additions, 320 deletionsgcc/tree-mudflap.c
- gcc/tree-optimize.c 9 additions, 42 deletionsgcc/tree-optimize.c
- gcc/tree-sra.c 1 addition, 2 deletionsgcc/tree-sra.c
Loading
Please register or sign in to comment