diff options
author | Sharad Singhai <singhai@google.com> | 2012-11-01 07:34:44 +0000 |
---|---|---|
committer | Sharad Singhai <singhai@google.com> | 2012-11-01 07:34:44 +0000 |
commit | 3c6846485adbef3dc5d85b0538defd927306d35b (patch) | |
tree | 47725ebeed1bb76102194e7ca04ca401b8d512ff /gcc/tree-cfg.c | |
parent | 422a3a6f51266e6c427efc92f9993729c68ad6a9 (diff) |
2012-11-01 Sharad Singhai <singhai@google.com>
* doc/invoke.texi: Update -fopt-info documentation.
* dumpfile.c: Move dump_flags here from passes.c.
Rename opt_info_options to optinfo_verbosity_options.
Add optgroup_options.
(dump_files): Add field for optinfo_flags in the static initializer.
(dump_register): Handle additional parameter for optgroup_flags.
(opt_info_enable_passes): Renamed opt_info_enable_all. Handle
optgroup_flags. Fix documentation.
(opt_info_switch_p_1): Handle optgroup options.
(opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
* dumpfile.h (dump_register): Additional argument for optgroup_flags.
All callers updated.
(struct dump_file_info): Add field for optgroup_flags.
Define OPTGROUP_* flags.
* tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
All opt_pass static initializers updated.
* opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
instead of 'optall'.
(handle_common_deferred_options): Fix typo in error message.
* passes.c (register_one_dump_file): Add argument for optgroup_flags.
Turn on OPTGROUP_IPA for IPA passes.
Move dump_flags from here to dumpfile.c.
* statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
dump_register.
testsuite/ChangeLog
* testsuite/gcc.dg/plugin/selfassign.c: Add opgtroup_flags initializer.
* testsuite/gcc.dg/plugin/one_time_plugin.c: Likewise.
* testsuite/g++.dg/plugin/selfassign.c: Likewise.
* testsuite/g++.dg/plugin/dumb_plugin.c: Likewise.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@193061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 7fc5a534dc7..28cdca3df0d 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -247,6 +247,7 @@ struct gimple_opt_pass pass_build_cfg = { GIMPLE_PASS, "cfg", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ NULL, /* gate */ execute_build_cfg, /* execute */ NULL, /* sub */ @@ -7705,6 +7706,7 @@ struct gimple_opt_pass pass_split_crit_edges = { GIMPLE_PASS, "crited", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ NULL, /* gate */ split_critical_edges, /* execute */ NULL, /* sub */ @@ -7858,6 +7860,7 @@ struct gimple_opt_pass pass_warn_function_return = { GIMPLE_PASS, "*warn_function_return", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ NULL, /* gate */ execute_warn_function_return, /* execute */ NULL, /* sub */ @@ -7894,6 +7897,7 @@ struct gimple_opt_pass pass_warn_function_noreturn = { GIMPLE_PASS, "*warn_function_noreturn", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ gate_warn_function_noreturn, /* gate */ execute_warn_function_noreturn, /* execute */ NULL, /* sub */ @@ -7992,6 +7996,7 @@ struct gimple_opt_pass pass_warn_unused_result = { GIMPLE_PASS, "*warn_unused_result", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ gate_warn_unused_result, /* gate */ run_warn_unused_result, /* execute */ NULL, /* sub */ |