From patchwork Mon Dec 4 13:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Dapp X-Patchwork-Id: 173302 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2754971vqy; Mon, 4 Dec 2023 05:18:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEMQRjdzyunQW3ptEFJNuAJDpYI8ex4lP3jsK0S252gTdSJgXGjcE58ecmZY4Bfc4Mobja X-Received: by 2002:ac8:7c52:0:b0:425:4043:7645 with SMTP id o18-20020ac87c52000000b0042540437645mr6318497qtv.109.1701695896742; Mon, 04 Dec 2023 05:18:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701695896; cv=pass; d=google.com; s=arc-20160816; b=TES/Cbnhi/FA4tIvAsFVJHgInTLb1Erq4r4XEA8Gzd4wOCypiDiJmNedzzYHVXHqti ECkUv7iAps/d6njLgeFfymTqr5FhS6ZrXzdInHo6/WBNI3e3bnFxuGbzhMkt+Bxz5yES 0ntUuFpzTL4bZIQcLaC15Mr5MuYvBKaoHQZwBkzppQFbZFlkEPgJKdiPC6G3Mk/HdiTI nryY+xuC791PeLFu3JghruAI+r+Qz/ObOIfLRs4WMRqx6WMvYlQYWQB3f8+iaCW3L7UH EZH8RaywJHRPNRfcZzk/vD3nht44DBFp36b4eMkdQVynovDgp58G/VPiUfd8ogKcstei g0cQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :subject:from:to:content-language:cc:user-agent:mime-version:date :message-id:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=Xz6aIVdOvSExQYzHl5uuPfs5cGxSrFKue4LKAMX/7KA=; fh=MP1/pUCFlWKCuVsZg/AyiqM/gAN9eNrTjtzrUP16xWo=; b=G2bVrDM0J/9Sh79LM+8KQE4CDztzmbow2SAKNIzCzbf1XrgGbNMOUicUm+XsXs88sW wnNaokPRaxpumYgBbT+f0ao7O9NeTMg6IYWqb5oSYmbyoiGCAc05TG3QKXecRb0RZ18k j5497QLKIIvphlGLgouhThywiR/pFHBk6cBhJRxRF5SG+kKP8mfEocWzk6X1wrizhG+S jST69hb0WNrN6uoUr1w3R+gWVl/kmLuFfAgPeK7b9Cml2xpyk7+TuUjDRKjKYizHW2AV L2bu9A5v9AAWhF8vhVdKnrdwCrt3ZYncZS817i+/RHcmfAJ2MxXtdve2dK59uE7l0zGu LCzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ng/6sRHJ"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ew15-20020a05622a514f00b0042540e96cc8si6154669qtb.299.2023.12.04.05.18.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:18:16 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Ng/6sRHJ"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7108A385782C for ; Mon, 4 Dec 2023 13:18:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id B909C386C5B6 for ; Mon, 4 Dec 2023 13:17:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B909C386C5B6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B909C386C5B6 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701695873; cv=none; b=HC6NJJ32xK2+l1YNsVuZBJjxq5s4uCbw0+2F1fxhmR4FSNPIsPBdSaA8PfYsIi9U4w1PBXZkCRBeLg4k2IXJn/HYl2Z1RKhrc3YHGf/hPkE1tFOAXxlK8IK+uMxvQ4XJzT+QWf3P6X1IiwJM81oFL4RxSsCgvqx+JU4npjifU7M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701695873; c=relaxed/simple; bh=ckg4EnNvCHnMxf1VhYsJM2W3tcfqf0jhMWJ05wjNYLo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=XOp0J+Qr3i+sNDHYeZfMFPhtlWFrE5UntvI2uYlZqd8ef8z/JTjlK8357yPP8LmJ1QYk/tHg2t2Hs9JnqpSAI0ESe0jHbwOfbJ5xNpUfsJUpGm+m/YKEDPajbOynsEdoBok1paexG4Hvk5OMpR/HeF4mYQtrLmpj+xYzzx8ihJ8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9e1021dbd28so611449166b.3 for ; Mon, 04 Dec 2023 05:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701695865; x=1702300665; darn=gcc.gnu.org; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Xz6aIVdOvSExQYzHl5uuPfs5cGxSrFKue4LKAMX/7KA=; b=Ng/6sRHJIUU+FasERCGzy4HPWVMOTYhYA0i/ArcKsB6uqI4sioUZFvh3ZUGJE/f9Fg GYXBvc9jYge40goi1MAj9QAVg/j+VaJQPW1l2xpoLlTJi6VT5bT5dYcJynO1JTw9LUq6 sjmcZoEvk+AGjh02tcuZnLVQ8CNQNBr3fmDvCtBaGhbi7mfkwCfefQOecyQ2GILTfQS/ /xdOl6h3v7yT7VskEFoZBapneKNIZ3FRl6HglkOht0rd+aDPON5K2mAY64i/KhToeBZR J2KowCNavXaVmIZtwvcUaxRRA9eOqxNOL7tecX8yh3ntHSE09asYOaHZmyu6EFQ9CMeA ErIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701695865; x=1702300665; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Xz6aIVdOvSExQYzHl5uuPfs5cGxSrFKue4LKAMX/7KA=; b=irS15bUBvR+owesQjCfD0xv+CICERxZ/nf7n5NDyy+zNVT8bY8Y5ov/DYLS4ZknPdC XGeVMOHxVKdMmgX2B8FCaA99RDCoA0bllG3q7nlmWBfFI9peMugaKdn3CkZH+SQbVrvU UYK+9fo3jv7DHeLCR6Gk9rt7yEALvz5nxxlDPWGdQX/jChc6zjvYeIzz8pWvYmBlevsy bp9wRGPLSK1tUvV1DdCLEGJY2p56HgLBp5EmeAf8QclN1nW2MY4vz5JBWN1LdDm+6nyR Qck6cOYacWaaQWpga1lNntyH4TDv/35YPJDgggxf6kxjf+n0gmdKHFnhBHObW5U5hk4M SlZw== X-Gm-Message-State: AOJu0YxdHunQWLGWkDa1k4Y2D1LkJJrmSW8/ycDoZCSWPMRCT2NY3Xvh mH0IYKBlBij7nuq9TxolfTQZftzNAMo= X-Received: by 2002:a17:907:c1f:b0:a19:a19b:c701 with SMTP id ga31-20020a1709070c1f00b00a19a19bc701mr3714076ejc.81.1701695864984; Mon, 04 Dec 2023 05:17:44 -0800 (PST) Received: from [192.168.1.23] (ip-149-172-150-237.um42.pools.vodafone-ip.de. [149.172.150.237]) by smtp.gmail.com with ESMTPSA id n23-20020a170906089700b0099297782aa9sm5236859eje.49.2023.12.04.05.17.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 05:17:44 -0800 (PST) Message-ID: <157b3c54-d18f-4908-b20b-b6726545b999@gmail.com> Date: Mon, 4 Dec 2023 14:17:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: rdapp.gcc@gmail.com Content-Language: en-US To: gcc-patches , palmer , Kito Cheng , jeffreyalaw , "juzhe.zhong@rivai.ai" From: Robin Dapp Subject: [PATCH] RISC-V: Fix two testscases related to -std changes. X-Spam-Status: No, score=-9.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784357476514999704 X-GMAIL-MSGID: 1784357476514999704 Hi, recent -std changes caused testsuite failures. Fix those by adding -std=gnu99 and -Wno-incompatible-pointer-types. Going to commit as obvious. Regards Robin gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr112552.c: Add -Wno-incompatible-pointer-types. * gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c: Add -std=gnu99. --- gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c | 2 +- .../gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c index 32d221ccede..4ef76cd3506 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr112552.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -w" } */ +/* { dg-options "-O3 -march=rv64gcv -mabi=lp64d --param=riscv-autovec-preference=fixed-vlmax -w -Wno-incompatible-pointer-types" } */ int a, c, d; void (*b)(); diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c index 79037048f55..3beca30c361 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/struct/struct_vect_run-10.c @@ -1,5 +1,5 @@ /* { dg-do run { target { riscv_v && riscv_zvfh_hw } } } */ -/* { dg-additional-options "-std=c99 --param=riscv-autovec-preference=scalable -fno-vect-cost-model" } */ +/* { dg-additional-options "-std=gnu99 --param=riscv-autovec-preference=scalable -fno-vect-cost-model" } */ #define TYPE _Float16 #define ITYPE int16_t