From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 0C39C385842C; Mon, 19 Jun 2023 11:41:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0C39C385842C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687174881; bh=nNbdaoN/EF7erxAdvq75bB2DL4FWX5KER4KKS3E4zv4=; h=From:To:Subject:Date:From; b=pH+7Bvef/3BPIFcsjwhWDmBfS/xMUnlgo1Wgd/El5Uce3j395Dis6kd+Ccja/fBEI auz+4zpCQRHWx2O8wsVlKKaqC+yf4+mC/YWGDuWeB1IQsz6/UJx+VjpCg7IMajKFnE iqK9g+Qxo+6C/xiSVMa8qE8LbySpdGqNEeI7qgvQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jeff Law To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Remove duplicate `#include "riscv-vector-switch.def"` X-Act-Checkin: gcc X-Git-Author: Lehua Ding X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: 38e32f9d67ed0d1ee9e20f6ce81f55ef3a4d8370 X-Git-Newrev: 17f9b68a95fb084daa02590ddc0890fd2e1cd948 Message-Id: <20230619114121.0C39C385842C@sourceware.org> Date: Mon, 19 Jun 2023 11:41:21 +0000 (GMT) List-Id: https://gcc.gnu.org/g:17f9b68a95fb084daa02590ddc0890fd2e1cd948 commit 17f9b68a95fb084daa02590ddc0890fd2e1cd948 Author: Lehua Ding Date: Tue Jun 13 18:59:09 2023 +0800 RISC-V: Remove duplicate `#include "riscv-vector-switch.def"` Hi, This patch remove the duplicate `#include "riscv-vector-switch.def"` statement and add #undef for ENTRY and TUPLE_ENTRY macros later. Best, Lehua gcc/ChangeLog: * config/riscv/riscv-v.cc (struct mode_vtype_group): Remove duplicate #include. (ENTRY): Undef. (TUPLE_ENTRY): Undef. Diff: --- gcc/config/riscv/riscv-v.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc index d797326d736..e07d5c2901a 100644 --- a/gcc/config/riscv/riscv-v.cc +++ b/gcc/config/riscv/riscv-v.cc @@ -1254,7 +1254,6 @@ struct mode_vtype_group ratio_for_min_vlen64[MODE##mode] = RATIO_FOR_MIN_VLEN64; \ vlmul_for_for_vlen128[MODE##mode] = VLMUL_FOR_MIN_VLEN128; \ ratio_for_for_vlen128[MODE##mode] = RATIO_FOR_MIN_VLEN128; -#include "riscv-vector-switch.def" #define TUPLE_ENTRY(MODE, REQUIREMENT, SUBPART_MODE, NF, VLMUL_FOR_MIN_VLEN32, \ RATIO_FOR_MIN_VLEN32, VLMUL_FOR_MIN_VLEN64, \ RATIO_FOR_MIN_VLEN64, VLMUL_FOR_MIN_VLEN128, \ @@ -1268,6 +1267,8 @@ struct mode_vtype_group vlmul_for_for_vlen128[MODE##mode] = VLMUL_FOR_MIN_VLEN128; \ ratio_for_for_vlen128[MODE##mode] = RATIO_FOR_MIN_VLEN128; #include "riscv-vector-switch.def" +#undef ENTRY +#undef TUPLE_ENTRY } };