From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7924) id 0D6D73858D38; Fri, 8 Sep 2023 08:31:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6D73858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694161902; bh=gLh4ztIQy+DtG21GXIFTYpxSUVpbNRK8hSMPgVyc2aY=; h=From:To:Subject:Date:From; b=ZiOFNQZ03SoE2znhURghvBVXZa+sgTCFQD1/BHeWW+e4OkXdjLPSWUsYR01EmkEct jU/MBeTvdId5KTr7HGMm9LrnwjiYxCSkdJPYO/ajSCSu5Qgz6LRESW01nZPoaTOwRx 8H9CpTu5tkQqahxXOPm8N0PGd+fTxY6hNRc2kZdU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pan Li To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-3799] RISC-V: Suppress bogus warning for VLS types X-Act-Checkin: gcc X-Git-Author: Juzhe-Zhong X-Git-Refname: refs/heads/master X-Git-Oldrev: f9cb357ae962ba2922b8507f4d96227780a063b9 X-Git-Newrev: a0e042d61dadc6bdcbeaa3b712b7a83415a12547 Message-Id: <20230908083142.0D6D73858D38@sourceware.org> Date: Fri, 8 Sep 2023 08:31:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:a0e042d61dadc6bdcbeaa3b712b7a83415a12547 commit r14-3799-ga0e042d61dadc6bdcbeaa3b712b7a83415a12547 Author: Juzhe-Zhong Date: Fri Sep 8 16:20:27 2023 +0800 RISC-V: Suppress bogus warning for VLS types This patch fixes over 100+ bogus FAILs due to experimental vector ABI warning. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_pass_in_vector_p): Only allow RVV type. Diff: --- gcc/config/riscv/riscv.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 7a0f9f6465df..1d7332ff32be 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -4414,7 +4414,7 @@ riscv_pass_in_vector_p (const_tree type) { static int warned = 0; - if (type && riscv_v_ext_mode_p (TYPE_MODE (type)) && !warned) + if (type && riscv_vector::lookup_vector_type_attribute (type) && !warned) { warning (OPT_Wpsabi, "ABI for the vector type is currently in experimental stage and "