From: Martin Jambor Date: Wed, 25 Jun 2025 14:53:03 +0000 (+0200) Subject: Mark pass_sccopy gate and execute functions as final override X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5cda85e636e0f65b57d807caceeee214d38356;p=thirdparty%2Fgcc.git Mark pass_sccopy gate and execute functions as final override It is customary to mark the gate and execute functions of the classes representing passes as final override but this is missing in pass_sccopy. This patch adds it which also silences clang warnings about it. gcc/ChangeLog: 2025-06-24 Martin Jambor * gimple-ssa-sccopy.cc (class pass_sccopy): Mark member functions gate and execute as final override. --- diff --git a/gcc/gimple-ssa-sccopy.cc b/gcc/gimple-ssa-sccopy.cc index c93374572a9..341bae46080 100644 --- a/gcc/gimple-ssa-sccopy.cc +++ b/gcc/gimple-ssa-sccopy.cc @@ -699,8 +699,8 @@ public: {} /* opt_pass methods: */ - virtual bool gate (function *) { return true; } - virtual unsigned int execute (function *); + virtual bool gate (function *) final override { return true; } + virtual unsigned int execute (function *) final override; opt_pass * clone () final override { return new pass_sccopy (m_ctxt); } }; // class pass_sccopy