diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-14 21:32:14 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-14 21:32:14 +0000 |
commit | 53907817269018d9893c8596cf3e3ddc5e81d459 (patch) | |
tree | 486b7eae9e3ea288b6c260c42a958d851be929ed /gcc/tree-optimize.c | |
parent | 632e46babf41c56892575990dd898150fc772671 (diff) | |
download | gcc-53907817269018d9893c8596cf3e3ddc5e81d459.tar.gz |
2005-02-14 Daniel Berlin <dberlin@dberlin.org>
* tree-dump.c (dump_files): Update to reflect new member
of dump_file_info.
(dump_register): Add new argument.
Set glob name.
(dump_switch_p_1): Check against glob name if doglob was passed.
(dump_switch_p): Check against regular first, then glob if
we didn't have any hits on the dump name.
* tree-optimize.c (register_one_dump_file):
Pass in glob name as well.
* tree-pass.h (struct dump_file_info): Add glob
member.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 30429e8aa2b..8006a2cdac6 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -212,7 +212,7 @@ static struct tree_opt_pass pass_init_datastructures = static void register_one_dump_file (struct tree_opt_pass *pass, int n) { - char *dot_name, *flag_name; + char *dot_name, *flag_name, *glob_name; char num[10]; /* See below in next_pass_1. */ @@ -225,13 +225,15 @@ register_one_dump_file (struct tree_opt_pass *pass, int n) if (pass->properties_provided & PROP_trees) { flag_name = concat ("tree-", pass->name, num, NULL); - pass->static_pass_number = dump_register (dot_name, flag_name, + glob_name = concat ("tree-", pass->name, NULL); + pass->static_pass_number = dump_register (dot_name, flag_name, glob_name, TDF_TREE, n + TDI_tree_all, 0); } else { flag_name = concat ("rtl-", pass->name, num, NULL); - pass->static_pass_number = dump_register (dot_name, flag_name, + glob_name = concat ("rtl-", pass->name, NULL); + pass->static_pass_number = dump_register (dot_name, flag_name, glob_name, TDF_RTL, n, pass->letter); } } |