From patchwork Tue Feb 28 01:14:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 62223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2741106wrd; Mon, 27 Feb 2023 17:15:16 -0800 (PST) X-Google-Smtp-Source: AK7set/Di0y+LdNfoLjWB2jj4HJV5ffDrvVG1jHncj3aLDvukHUK++FAb0ctZQmyMpaIlqLbV01l X-Received: by 2002:a17:906:f892:b0:8b1:779c:a8ac with SMTP id lg18-20020a170906f89200b008b1779ca8acmr758642ejb.13.1677546915967; Mon, 27 Feb 2023 17:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677546915; cv=none; d=google.com; s=arc-20160816; b=N/adrKbHsnmseEORnkh93KmsxL9BbJegk7zNVov9CyWqJa7ikf65aGO0IrdSB1IbMn eGlUXqcVtj5rAiWPMvRuQ/OqRxOy7VZZgYTo2PfcnsiiuV5PUdBFNVWFLxSi1jci4Gu2 gTCDn3C/q6tvduSP5/Z+quQc8G0x3djbak/A66eG9EiklA4E91M2+IaKXmJruu6RO0+U NkPY7M4MirzUTVkex6KQ2D7j6eLIo/RXk2SnEuqD80fh3nMPOfV8HEGWt2X0KHhdzlb9 mWWeyMZW8LFBMq1MjuevLQzFBr8ysNBZBZoIZdGslFY3WZ9E7rE3OsDxd81Z3jGMhmJO KiMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:date:message-id :content-transfer-encoding:mime-version:subject:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=gvpklS+n5U4tI6V+6ipK51fB0DjlCTl/AJ6kdS3beGc=; b=spkBpr6Ctg9u+XRFmpySzYic0PCNpRdyKYzLquuwBNa0yt7kXnlh+8RrqtrMR7J5/Y Lq6rsiXcVxgd/FHXzbUAANtYZkobADuTXRwSaajIXXcmgSaeihp/U/RbGrHgPKooYiXa i7GqJ1H6IYjhwmkOuCjGHmQWRGipT3yqMYlwt3Vc0WEyYJZ6CW92j3smSN7qUYUVIPlw uG4IgrqEOMK74O/BXMn8S4IJwn2w8xIf24wNIrbhnWOz8GbzVPywcJVK50cbUqqGRG+K FnvyGaiCCclcetKR/3gdn2niManR9QO+pbvAbjeaemtKtblHtdGytFwsS27GlLSABo4q 7acA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=fRnoQWDb; 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=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f12-20020a17090624cc00b008e259a32ab9si7947015ejb.661.2023.02.27.17.15.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 17:15:15 -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=@gcc.gnu.org header.s=default header.b=fRnoQWDb; 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=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E7836385841A for ; Tue, 28 Feb 2023 01:15:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7836385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677546914; bh=gvpklS+n5U4tI6V+6ipK51fB0DjlCTl/AJ6kdS3beGc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=fRnoQWDb0fpRAp2l3V5Bw0tetwHsFJr29oDRSvyh2nSIcM13LNZFXKljAftmphqmR QCOnE+wkOUwmm3QJY4XBe3XxxrKb+F4cLWllxfXdMkESFfWrFhWLYNA4U3UQ3cDVIK ezA5JQCeVFMTv1kE8Toc++YJ7A8d/RCMJgaxZDUk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id AA3783858C50 for ; Tue, 28 Feb 2023 01:14:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA3783858C50 To: Subject: [COMMITTED] testsuite: Add CRIS to targets not xfailing gcc.dg/attr-alloc_size-11.c:50, 51 MIME-Version: 1.0 Message-ID: <20230228011421.CC1E220441@pchp3.se.axis.com> Date: Tue, 28 Feb 2023 02:14:21 +0100 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759035435352866316?= X-GMAIL-MSGID: =?utf-8?q?1759035435352866316?= Reacting to a long-standing XPASS for CRIS. Maybe better do as https://gcc.gnu.org/PR79356#c11 suggests: xfail it for x86 only ...except I see m68k also does not xpass. testsuite: PR testsuite/79356 * gcc.dg/attr-alloc_size-11.c: Add CRIS to the list of targets excluding xfail on lines 50 and 51. --- gcc/testsuite/gcc.dg/attr-alloc_size-11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c index 8332b39930c3..a2efe1289151 100644 --- a/gcc/testsuite/gcc.dg/attr-alloc_size-11.c +++ b/gcc/testsuite/gcc.dg/attr-alloc_size-11.c @@ -47,8 +47,8 @@ typedef __SIZE_TYPE__ size_t; /* The following tests fail because of missing range information. The xfail exclusions are PR79356. */ -TEST (signed char, SCHAR_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range info for signed char" { xfail { ! { aarch64*-*-* arm*-*-* avr-*-* alpha*-*-* ia64-*-* mips*-*-* or1k*-*-* pdp11*-*-* powerpc*-*-* sparc*-*-* s390*-*-* visium-*-* msp430-*-* nvptx*-*-*} } } } */ -TEST (short, SHRT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range info for short" { xfail { ! { aarch64*-*-* arm*-*-* alpha*-*-* avr-*-* ia64-*-* mips*-*-* or1k*-*-* pdp11*-*-* powerpc*-*-* sparc*-*-* s390x-*-* visium-*-* msp430-*-* nvptx*-*-* } } } } */ +TEST (signed char, SCHAR_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range info for signed char" { xfail { ! { aarch64*-*-* arm*-*-* avr-*-* alpha*-*-* cris-*-* ia64-*-* mips*-*-* or1k*-*-* pdp11*-*-* powerpc*-*-* sparc*-*-* s390*-*-* visium-*-* msp430-*-* nvptx*-*-*} } } } */ +TEST (short, SHRT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" "missing range info for short" { xfail { ! { aarch64*-*-* arm*-*-* alpha*-*-* avr-*-* cris-*-* ia64-*-* mips*-*-* or1k*-*-* pdp11*-*-* powerpc*-*-* sparc*-*-* s390x-*-* visium-*-* msp430-*-* nvptx*-*-* } } } } */ TEST (int, INT_MIN + 2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */ TEST (int, -3, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */ TEST (int, -2, ALLOC_MAX); /* { dg-warning "argument 1 range \\\[13, \[0-9\]+\\\] exceeds maximum object size 12" } */