From ddff65d64d5fb20da7dea3adaa406e2244d055e9 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 27 Jun 2022 17:00:33 -0400 Subject: [PATCH] expr.cc: use final/override on op_by_pieces_d vfuncs gcc/ChangeLog: * expr.cc: Add "final" and "override" to op_by_pieces_d vfunc implementations as appropriate. Signed-off-by: David Malcolm --- gcc/expr.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/expr.cc b/gcc/expr.cc index c90cde3..5d66c9f 100644 --- a/gcc/expr.cc +++ b/gcc/expr.cc @@ -1355,8 +1355,8 @@ op_by_pieces_d::run () class move_by_pieces_d : public op_by_pieces_d { insn_gen_fn m_gen_fun; - void generate (rtx, rtx, machine_mode); - bool prepare_mode (machine_mode, unsigned int); + void generate (rtx, rtx, machine_mode) final override; + bool prepare_mode (machine_mode, unsigned int) final override; public: move_by_pieces_d (rtx to, rtx from, unsigned HOST_WIDE_INT len, @@ -1451,8 +1451,8 @@ move_by_pieces (rtx to, rtx from, unsigned HOST_WIDE_INT len, class store_by_pieces_d : public op_by_pieces_d { insn_gen_fn m_gen_fun; - void generate (rtx, rtx, machine_mode); - bool prepare_mode (machine_mode, unsigned int); + void generate (rtx, rtx, machine_mode) final override; + bool prepare_mode (machine_mode, unsigned int) final override; public: store_by_pieces_d (rtx to, by_pieces_constfn cfn, void *cfn_data, @@ -1648,9 +1648,9 @@ class compare_by_pieces_d : public op_by_pieces_d rtx m_accumulator; int m_count, m_batch; - void generate (rtx, rtx, machine_mode); - bool prepare_mode (machine_mode, unsigned int); - void finish_mode (machine_mode); + void generate (rtx, rtx, machine_mode) final override; + bool prepare_mode (machine_mode, unsigned int) final override; + void finish_mode (machine_mode) final override; public: compare_by_pieces_d (rtx op0, rtx op1, by_pieces_constfn op1_cfn, void *op1_cfn_data, HOST_WIDE_INT len, int align, -- 2.7.4