diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2006-02-08 08:13:20 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2006-02-08 08:13:20 +0000 |
commit | bbbe4e7bf7238db3f5f37febee19b354dfe6a330 (patch) | |
tree | b4486762445408b8e8b311f02bd5109a18afaffb /gcc/tree-pass.h | |
parent | fbf2ca7bb768e02cb29495016550e1559bc7a09f (diff) | |
download | gcc-bbbe4e7bf7238db3f5f37febee19b354dfe6a330.zip gcc-bbbe4e7bf7238db3f5f37febee19b354dfe6a330.tar.gz gcc-bbbe4e7bf7238db3f5f37febee19b354dfe6a330.tar.bz2 |
passes.c (register_one_dump_file): Accept the current properties instead of pass number.
2006-02-08 Paolo Bonzini <bonzini@gnu.org>
* passes.c (register_one_dump_file): Accept the current properties
instead of pass number. Adjust call to dump_register. Remove
duplicated code.
(register_dump_files): Now a wrapper around...
(register_dump_files_1): ... this one. Do not modify the pass
structure.
(next_pass_1): Cosmetic fix.
(execute_todo): Keep second parameter only. Use curr_properties instead
of fetching it from the pass structure. Check and set last_verified.
(execute_one_pass): Handle TODO_set_props. Use curr_properties
instead of fetching it from the pass structure. Fix calls to
execute_todo. Update curr_properties and initialize .vcg RTL dump
after running the pass. Reset last_verified.
* tree-dump.c (dump_files): Renumber consecutively. Put .cgraph dump
at the beginning.
(FIRST_AUTO_NUMBERED_DUMP): New.
(dump_register): Remove "num" parameter, assign it within the
function.
(get_dump_file_name): Modify template for dumps.
* tree-dump.h (dump_register): Adjust prototype.
* tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
(PROP_trees): Add PROP_gimple_lomp.
(TODO_set_props): New.
* gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
* tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
* cfgexpand.c (pass_expand): Destroy PROP_trees.
gcc/testsuite:
2006-02-08 Paolo Bonzini <bonzini@gnu.org>
* lib/gcc-dg.exp (cleanup-rtl-dump, cleanup-tree-dump,
cleanup-ipa-dump): Update dump file glob patterns.
* lib/scantree.exp (scan-tree-dump, scan-tree-dump-times,
scan-tree-dump-not, scan-tree-dump-dem): Likewise.
* lib/scanipa.exp (scan-ipa-dump, scan-ipa-dump-times,
scan-ipa-dump-not, scan-ipa-dump-dem): Likewise.
* lib/scanrtl.exp: New.
* lib/gcc-dg.exp: Load it.
* objc.dg/stubify-2.m: Use scan-rtl-dump-not.
From-SVN: r110742
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r-- | gcc/tree-pass.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index 82e8c10..5d49b6c 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -30,6 +30,7 @@ Boston, MA 02110-1301, USA. */ enum tree_dump_index { TDI_none, /* No dump */ + TDI_cgraph, /* dump function call graph. */ TDI_tu, /* dump the whole translation unit. */ TDI_class, /* dump class hierarchy. */ TDI_original, /* dump each function before optimizing it */ @@ -43,7 +44,6 @@ enum tree_dump_index TDI_rtl_all, /* enable all the RTL dumps. */ TDI_ipa_all, /* enable all the IPA dumps. */ - TDI_cgraph, /* dump function call graph. */ TDI_end }; @@ -154,7 +154,7 @@ struct dump_file_info #define PROP_gimple_lomp (1 << 10) /* lowered OpenMP directives */ #define PROP_trees \ - (PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh) + (PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh | PROP_gimple_lomp) /* To-do flags. */ #define TODO_dump_func (1 << 0) @@ -208,6 +208,10 @@ struct dump_file_info the memory footprint for VAR_DECLs. */ #define TODO_remove_unused_locals (1 << 11) +/* Internally used for the first in a sequence of passes. It is set + for the passes that are handed to register_dump_files. */ +#define TODO_set_props (1 << 12) + #define TODO_update_ssa_any \ (TODO_update_ssa \ | TODO_update_ssa_no_phi \ |