From 2b4e6bf1d556f89711726eaa02b125ed6f39a82f Mon Sep 17 00:00:00 2001 From: Sharad Singhai Date: Thu, 1 Nov 2012 07:34:44 +0000 Subject: invoke.texi: Update -fopt-info documentation. 2012-11-01 Sharad Singhai * 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. From-SVN: r193061 --- gcc/ipa.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/ipa.c') diff --git a/gcc/ipa.c b/gcc/ipa.c index e5737f4..641c54d 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -948,6 +948,7 @@ struct simple_ipa_opt_pass pass_ipa_function_and_variable_visibility = { SIMPLE_IPA_PASS, "visibility", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ NULL, /* gate */ local_function_and_variable_visibility,/* execute */ NULL, /* sub */ @@ -977,6 +978,7 @@ struct simple_ipa_opt_pass pass_ipa_free_inline_summary = { SIMPLE_IPA_PASS, "*free_inline_summary", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ NULL, /* gate */ free_inline_summary, /* execute */ NULL, /* sub */ @@ -1015,6 +1017,7 @@ struct ipa_opt_pass_d pass_ipa_whole_program_visibility = { IPA_PASS, "whole-program", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ gate_whole_program_function_and_variable_visibility,/* gate */ whole_program_function_and_variable_visibility,/* execute */ NULL, /* sub */ @@ -1098,6 +1101,7 @@ struct ipa_opt_pass_d pass_ipa_profile = { IPA_PASS, "profile_estimate", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ gate_ipa_profile, /* gate */ ipa_profile, /* execute */ NULL, /* sub */ @@ -1408,6 +1412,7 @@ struct ipa_opt_pass_d pass_ipa_cdtor_merge = { IPA_PASS, "cdtor", /* name */ + OPTGROUP_NONE, /* optinfo_flags */ gate_ipa_cdtor_merge, /* gate */ ipa_cdtor_merge, /* execute */ NULL, /* sub */ -- cgit v1.1