From: Gaius Mulley Date: Thu, 19 May 2022 11:04:05 +0000 (+0100) Subject: Reformatting of comments in plugin. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af714e82807e9bceb1d12714bf0184cc27654d02;p=thirdparty%2Fgcc.git Reformatting of comments in plugin. 2022-05-19 Gaius Mulley gcc/m2/ChangeLog: * plugin/m2rte.cc: Further reformatting of comments. Signed-off-by: Gaius Mulley --- diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog index c99d9a926001..c3605c3e662d 100644 --- a/gcc/m2/ChangeLog +++ b/gcc/m2/ChangeLog @@ -18,6 +18,7 @@ those referring to .c files). * plugin/m2rte.cc: Reformatted comments. * lang-options.h: (Removed). + * plugin/m2rte.cc: Further reformatting of comments. 2022-05-16 Gaius Mulley diff --git a/gcc/m2/plugin/m2rte.cc b/gcc/m2/plugin/m2rte.cc index 80ba48f31b57..0f2e13909676 100644 --- a/gcc/m2/plugin/m2rte.cc +++ b/gcc/m2/plugin/m2rte.cc @@ -159,17 +159,17 @@ examine_call (gimple *stmt) // rtegraph_dump (); if (fndecl != NULL && (DECL_NAME (fndecl) != NULL)) { - /* firstly check if the function is a runtime exception. */ + /* Firstly check if the function is a runtime exception. */ if (is_rte (fndecl)) { - /* remember runtime exception call. */ + /* Remember runtime exception call. */ rtegraph_include_rtscall (func); - /* add the callee to the list of candidates to be queried reachable. */ + /* Add the callee to the list of candidates to be queried reachable. */ rtegraph_candidates_include (func); return; } } - /* add it to the list of calls. */ + /* Add it to the list of calls. */ rtegraph_include_function_call (func); } @@ -184,10 +184,10 @@ examine_function_decl (rtenode *rt) tree fndecl = rtegraph_get_func (rt); if (fndecl != NULL && (DECL_NAME (fndecl) != NULL)) { - /* check if the function is a module constructor. */ + /* Check if the function is a module constructor. */ if (is_constructor (fndecl)) rtegraph_constructors_include (rt); - /* can it be called externally? */ + /* Can it be called externally? */ if (is_external (fndecl)) rtegraph_externs_include (rt); } @@ -226,10 +226,7 @@ public: : gimple_opt_pass(pass_data_exception_detection, ctxt) {} - /* opt_pass methods: */ - // opt_pass * clone () { return new pass_warn_exception_inevitable (m_ctxt); } virtual unsigned int execute (function *); - }; /* execute checks the first basic block of function fun to see if it @@ -240,11 +237,11 @@ pass_warn_exception_inevitable::execute (function *fun) { gimple_stmt_iterator gsi; basic_block bb; - /* record a function declaration. */ + /* Record a function declaration. */ rtenode *fn = rtegraph_lookup (fun->gimple_body, fun->decl, false); rtegraph_set_current_function (fn); - /* check if the current function is a module constructor/deconstructor. + /* Check if the current function is a module constructor/deconstructor. Also check if the current function is declared as external. */ examine_function_decl (fn); @@ -317,7 +314,7 @@ plugin_init (struct plugin_name_args *plugin_info, return 1; } - /* runtime exception inevitable detection. This plugin is most effective if + /* Runtime exception inevitable detection. This plugin is most effective if it is run after all optimizations. This is plugged in at the end of gimple range of optimizations. */ pass_info.pass = make_pass_warn_exception_inevitable (g);