From b800f80b9c866df5ecaff744149ea695c0e24718 Mon Sep 17 00:00:00 2001 From: Patrick Palka Date: Mon, 27 Feb 2023 10:12:25 -0500 Subject: don't declare header-defined functions both static and inline, cont. This fixes some header-defined functions that are undesirably declared static and weren't caught by the "^static inline" pattern used for the main patch r13-6096-gcb3e0eac262e55. gcc/ChangeLog: * hash-table.h (gt_pch_nx(hash_table)): Remove static. * lra-int.h (lra_change_class): Likewise. * recog.h (which_op_alt): Likewise. * sel-sched-ir.h (sel_bb_empty_or_nop_p): Declare inline instead of static. --- gcc/recog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/recog.h') diff --git a/gcc/recog.h b/gcc/recog.h index 764fa90..539a27c 100644 --- a/gcc/recog.h +++ b/gcc/recog.h @@ -382,7 +382,7 @@ extern const operand_alternative *recog_op_alt; on operand OP of the current instruction alternative (which_alternative). Only valid after calling preprocess_constraints and constrain_operands. */ -inline static const operand_alternative * +inline const operand_alternative * which_op_alt () { gcc_checking_assert (IN_RANGE (which_alternative, 0, -- cgit v1.1