gcc/ChangeLog: * auto-profile.c (pass_data_ipa_auto_profile): Use PASS_DATA_INIT macro and supply a value for "classname". * ipa-chkp.c (pass_data_ipa_chkp_versioning): Likewise. (pass_data_ipa_chkp_early_produce_thunks): Likewise. (pass_data_ipa_chkp_produce_thunks): Likewise. * ipa-icf.c (pass_data_ipa_icf): Likewise. * ipa-visibility.c (pass_data_ipa_function_and_variable_visibility): Likewise. * passes.c (pass_data pass_data_chkp_instrumentation_passes): Likewise. (pass_data_local_optimization_passes): Likewise. * tree-chkp-opt.c (pass_data_chkp_opt): Add missing comma. * tree-chkp.c (pass_data_chkp): Likewise. --- gcc/auto-profile.c | 5 +++-- gcc/ipa-chkp.c | 24 ++++++++++++------------ gcc/ipa-icf.c | 7 ++++--- gcc/ipa-visibility.c | 6 +++--- gcc/passes.c | 14 ++++++++------ gcc/tree-chkp-opt.c | 2 +- gcc/tree-chkp.c | 2 +- 7 files changed, 32 insertions(+), 28 deletions(-)
diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index ab5a27e..34e1175 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1678,7 +1678,7 @@ afdo_callsite_hot_enough_for_early_inline (struct cgraph_edge *edge) namespace { -const pass_data pass_data_ipa_auto_profile = { +const pass_data pass_data_ipa_auto_profile = PASS_DATA_INIT ( SIMPLE_IPA_PASS, "afdo", /* name */ OPTGROUP_NONE, /* optinfo_flags */ TV_IPA_AUTOFDO, /* tv_id */ @@ -1687,7 +1687,8 @@ const pass_data pass_data_ipa_auto_profile = { 0, /* properties_destroyed */ 0, /* todo_flags_start */ 0, /* todo_flags_finish */ -}; + "pass_ipa_auto_profile" /* classname */ +); class pass_ipa_auto_profile : public simple_ipa_opt_pass { diff --git a/gcc/ipa-chkp.c b/gcc/ipa-chkp.c index 96f269c..ed6ee98 100644 --- a/gcc/ipa-chkp.c +++ b/gcc/ipa-chkp.c @@ -745,8 +745,7 @@ chkp_produce_thunks (bool early) return TODO_remove_functions; } -const pass_data pass_data_ipa_chkp_versioning = -{ +const pass_data pass_data_ipa_chkp_versioning = PASS_DATA_INIT ( SIMPLE_IPA_PASS, /* type */ "chkp_versioning", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -755,11 +754,11 @@ const pass_data pass_data_ipa_chkp_versioning = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0 /* todo_flags_finish */ -}; + 0, /* todo_flags_finish */ + "pass_ipa_chkp_versioning" /* classname */ +); -const pass_data pass_data_ipa_chkp_early_produce_thunks = -{ +const pass_data pass_data_ipa_chkp_early_produce_thunks = PASS_DATA_INIT ( SIMPLE_IPA_PASS, /* type */ "chkp_ecleanup", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -768,11 +767,11 @@ const pass_data pass_data_ipa_chkp_early_produce_thunks = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0 /* todo_flags_finish */ -}; + 0, /* todo_flags_finish */ + "pass_ipa_chkp_early_produce_thunks" /* classname */ +); -const pass_data pass_data_ipa_chkp_produce_thunks = -{ +const pass_data pass_data_ipa_chkp_produce_thunks = PASS_DATA_INIT ( SIMPLE_IPA_PASS, /* type */ "chkp_cleanup", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -781,8 +780,9 @@ const pass_data pass_data_ipa_chkp_produce_thunks = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0 /* todo_flags_finish */ -}; + 0, /* todo_flags_finish */ + "pass_ipa_chkp_produce_thunks" /* classname */ +); class pass_ipa_chkp_versioning : public simple_ipa_opt_pass { diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index e998fbf..c865ae8 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3526,8 +3526,8 @@ ipa_icf_driver (void) return merged_p ? TODO_remove_functions : 0; } -const pass_data pass_data_ipa_icf = -{ +const pass_data pass_data_ipa_icf = PASS_DATA_INIT +( IPA_PASS, /* type */ "icf", /* name */ OPTGROUP_IPA, /* optinfo_flags */ @@ -3537,7 +3537,8 @@ const pass_data pass_data_ipa_icf = 0, /* properties_destroyed */ 0, /* todo_flags_start */ 0, /* todo_flags_finish */ -}; + "pass_ipa_icf" /* classname */ +); class pass_ipa_icf : public ipa_opt_pass_d { diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index beccb46..d84e2e8 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -733,8 +733,7 @@ function_and_variable_visibility (bool whole_program) namespace { -const pass_data pass_data_ipa_function_and_variable_visibility = -{ +const pass_data pass_data_ipa_function_and_variable_visibility = PASS_DATA_INIT ( SIMPLE_IPA_PASS, /* type */ "visibility", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -744,7 +743,8 @@ const pass_data pass_data_ipa_function_and_variable_visibility = 0, /* properties_destroyed */ 0, /* todo_flags_start */ ( TODO_remove_functions | TODO_dump_symtab ), /* todo_flags_finish */ -}; + "pass_ipa_function_and_variable_visibility" /* classname */ +); /* Bring functions local at LTO time with -fwhole-program. */ diff --git a/gcc/passes.c b/gcc/passes.c index ac3e02e..b9e548b 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -440,8 +440,8 @@ public: }; // class pass_build_ssa_passes -const pass_data pass_data_chkp_instrumentation_passes = -{ +const pass_data pass_data_chkp_instrumentation_passes = PASS_DATA_INIT +( SIMPLE_IPA_PASS, /* type */ "chkp_passes", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -451,7 +451,8 @@ const pass_data pass_data_chkp_instrumentation_passes = 0, /* properties_destroyed */ 0, /* todo_flags_start */ 0, /* todo_flags_finish */ -}; + "pass_chkp_instrumentation_passes" /* classname */ +); class pass_chkp_instrumentation_passes : public simple_ipa_opt_pass { @@ -470,8 +471,8 @@ public: }; // class pass_chkp_instrumentation_passes -const pass_data pass_data_local_optimization_passes = -{ +const pass_data pass_data_local_optimization_passes = PASS_DATA_INIT +( SIMPLE_IPA_PASS, /* type */ "opt_local_passes", /* name */ OPTGROUP_NONE, /* optinfo_flags */ @@ -481,7 +482,8 @@ const pass_data pass_data_local_optimization_passes = 0, /* properties_destroyed */ 0, /* todo_flags_start */ 0, /* todo_flags_finish */ -}; + "pass_local_optimization_passes" /* classname */ +); class pass_local_optimization_passes : public simple_ipa_opt_pass { diff --git a/gcc/tree-chkp-opt.c b/gcc/tree-chkp-opt.c index 438c300..85d183a 100644 --- a/gcc/tree-chkp-opt.c +++ b/gcc/tree-chkp-opt.c @@ -1344,7 +1344,7 @@ const pass_data pass_data_chkp_opt = PASS_DATA_INIT ( 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_verify_il - | TODO_update_ssa /* todo_flags_finish */ + | TODO_update_ssa, /* todo_flags_finish */ "pass_chkp_opt" /* classname */ ); diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index f205b6f..0eb65cb 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -4426,7 +4426,7 @@ const pass_data pass_data_chkp = PASS_DATA_INIT ( 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_verify_il - | TODO_update_ssa /* todo_flags_finish */ + | TODO_update_ssa, /* todo_flags_finish */ "pass_chkp" /* classname */ ); -- 1.8.5.3