https://gcc.gnu.org/g:db5cda85e636e0f65b57d807caceeee214d38356
commit r16-1678-gdb5cda85e636e0f65b57d807caceeee214d38356 Author: Martin Jambor <mjam...@suse.cz> Date: Wed Jun 25 16:53:03 2025 +0200 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 <mjam...@suse.cz> * gimple-ssa-sccopy.cc (class pass_sccopy): Mark member functions gate and execute as final override. Diff: --- gcc/gimple-ssa-sccopy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/gimple-ssa-sccopy.cc b/gcc/gimple-ssa-sccopy.cc index c93374572a9e..341bae46080b 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