From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id 1E9ED3858D33; Fri, 17 Feb 2023 02:46:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E9ED3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676602019; bh=eCg3RrIagj7ii6bJIDget5yFK22du5ysWdDW07tUhRk=; h=From:To:Subject:Date:From; b=hs4XsYGYGqAwOI9Nmq19Z2XGooHD4o7BBwU7rFS5hb8e9Vxy0Zm1Qvhgbrgt/jzlO yBfvMBN2Oqv0rQDmIPEaly7KrCuxqs653HkxrGPkPC77KVQqz0CT1BNnyuMl58Ct6X cVfiUEu+PiDGnIY5Ni7QzWIlIly1vj4kKj1tul2w= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6105] RISC-V: Remove "extern" for namespace [NFC] X-Act-Checkin: gcc X-Git-Author: Ju-Zhe Zhong X-Git-Refname: refs/heads/master X-Git-Oldrev: b9da8f063a6c65228172528d5cbf9eff511350da X-Git-Newrev: 3b6d44f459d28ab17d42967ce1c0490397e30e40 Message-Id: <20230217024659.1E9ED3858D33@sourceware.org> Date: Fri, 17 Feb 2023 02:46:59 +0000 (GMT) List-Id: https://gcc.gnu.org/g:3b6d44f459d28ab17d42967ce1c0490397e30e40 commit r13-6105-g3b6d44f459d28ab17d42967ce1c0490397e30e40 Author: Ju-Zhe Zhong Date: Tue Feb 14 23:39:03 2023 +0800 RISC-V: Remove "extern" for namespace [NFC] Just like other targets, aarch64_sve namespace in aarch64-protos.h arm_mve in arm-protos, nds namesace in nds32-protos.h They all don't have 'extern' in namespace. This is a NFC patch to make RISC-V be consistent with other targets. No functionality change. gcc/ChangeLog: * config/riscv/riscv-protos.h (riscv_run_selftests): Remove 'extern'. (init_builtins): Ditto. (mangle_builtin_type): Ditto. (verify_type_context): Ditto. (handle_pragma_vector): Ditto. (builtin_decl): Ditto. (expand_builtin): Ditto. (const_vec_all_same_in_range_p): Ditto. (legitimize_move): Ditto. (emit_vlmax_op): Ditto. (emit_nonvlmax_op): Ditto. (get_vlmul): Ditto. (get_ratio): Ditto. (get_ta): Ditto. (get_ma): Ditto. (get_avl_type): Ditto. (calculate_ratio): Ditto. (enum vlmul_type): Ditto. (simm5_p): Ditto. (neg_simm5_p): Ditto. (has_vi_variant_p): Ditto. Diff: --- gcc/config/riscv/riscv-protos.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/gcc/config/riscv/riscv-protos.h b/gcc/config/riscv/riscv-protos.h index ee8e903ddf5..81ad2eabc00 100644 --- a/gcc/config/riscv/riscv-protos.h +++ b/gcc/config/riscv/riscv-protos.h @@ -115,7 +115,7 @@ extern const riscv_cpu_info *riscv_find_cpu (const char *); /* Routines implemented in riscv-selftests.cc. */ #if CHECKING_P namespace selftest { -extern void riscv_run_selftests (void); +void riscv_run_selftests (void); } // namespace selftest #endif @@ -141,24 +141,24 @@ enum avl_type VLMAX, }; /* Routines implemented in riscv-vector-builtins.cc. */ -extern void init_builtins (void); -extern const char *mangle_builtin_type (const_tree); +void init_builtins (void); +const char *mangle_builtin_type (const_tree); #ifdef GCC_TARGET_H -extern bool verify_type_context (location_t, type_context_kind, const_tree, bool); +bool verify_type_context (location_t, type_context_kind, const_tree, bool); #endif -extern void handle_pragma_vector (void); -extern tree builtin_decl (unsigned, bool); -extern rtx expand_builtin (unsigned int, tree, rtx); -extern bool const_vec_all_same_in_range_p (rtx, HOST_WIDE_INT, HOST_WIDE_INT); -extern bool legitimize_move (rtx, rtx, machine_mode); -extern void emit_vlmax_op (unsigned, rtx, rtx, machine_mode); -extern void emit_nonvlmax_op (unsigned, rtx, rtx, rtx, machine_mode); -extern enum vlmul_type get_vlmul (machine_mode); -extern unsigned int get_ratio (machine_mode); -extern int get_ta (rtx); -extern int get_ma (rtx); -extern int get_avl_type (rtx); -extern unsigned int calculate_ratio (unsigned int, enum vlmul_type); +void handle_pragma_vector (void); +tree builtin_decl (unsigned, bool); +rtx expand_builtin (unsigned int, tree, rtx); +bool const_vec_all_same_in_range_p (rtx, HOST_WIDE_INT, HOST_WIDE_INT); +bool legitimize_move (rtx, rtx, machine_mode); +void emit_vlmax_op (unsigned, rtx, rtx, machine_mode); +void emit_nonvlmax_op (unsigned, rtx, rtx, rtx, machine_mode); +enum vlmul_type get_vlmul (machine_mode); +unsigned int get_ratio (machine_mode); +int get_ta (rtx); +int get_ma (rtx); +int get_avl_type (rtx); +unsigned int calculate_ratio (unsigned int, enum vlmul_type); enum tail_policy { TAIL_UNDISTURBED = 0, @@ -176,10 +176,10 @@ enum tail_policy get_prefer_tail_policy (); enum mask_policy get_prefer_mask_policy (); rtx get_avl_type_rtx (enum avl_type); opt_machine_mode get_vector_mode (scalar_mode, poly_uint64); -extern bool simm5_p (rtx); -extern bool neg_simm5_p (rtx); +bool simm5_p (rtx); +bool neg_simm5_p (rtx); #ifdef RTX_CODE -extern bool has_vi_variant_p (rtx_code, rtx); +bool has_vi_variant_p (rtx_code, rtx); #endif }