From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2119) id 1E87C3858002; Mon, 11 Sep 2023 13:38:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E87C3858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694439510; bh=iwIcyHbj1psad+i5I8YQf7MTwOFqr0+HO2RZIEGf+2Y=; h=From:To:Subject:Date:From; b=xYAR5mGgFDUs4uFEVYQuBWcSZ6RhqaLHzxk+tJZaHGVn8uVBk1YwanY5CLreSXNyO +nLWSuTkD6ZVl4XIvvPjmi6ulzOiTKv2chSjPKDOtoJHRz4l4K3zUyBxnYDgR21Lpo p9skdH01+BqiJiwhQiCN9Fs5hsyeoHcnWGcXIjLs= 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: Suppress bogus warning for VLS types X-Act-Checkin: gcc X-Git-Author: Juzhe-Zhong X-Git-Refname: refs/vendors/riscv/heads/gcc-13-with-riscv-opts X-Git-Oldrev: 3ee4f0d4a4cd8cc9416e4672cfb38cf31a2f36f1 X-Git-Newrev: 727e8d9fdf88a1ea97d8629431d3e841ede1e437 Message-Id: <20230911133830.1E87C3858002@sourceware.org> Date: Mon, 11 Sep 2023 13:38:30 +0000 (GMT) List-Id: https://gcc.gnu.org/g:727e8d9fdf88a1ea97d8629431d3e841ede1e437 commit 727e8d9fdf88a1ea97d8629431d3e841ede1e437 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. (cherry picked from commit a0e042d61dadc6bdcbeaa3b712b7a83415a12547) 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 "