From patchwork Tue Feb 7 16:50:00 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: 53993 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2955572wrn; Tue, 7 Feb 2023 08:50:47 -0800 (PST) X-Google-Smtp-Source: AK7set8vQSqnY7wqGF5DCbOHFp6tuZS/xqjkRi+5cizaaIOYVDbXEZQA8pvKOWgmhdPZEA+JQ/YJ X-Received: by 2002:a17:907:97cd:b0:88d:ba89:1844 with SMTP id js13-20020a17090797cd00b0088dba891844mr21432681ejc.21.1675788647819; Tue, 07 Feb 2023 08:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675788647; cv=none; d=google.com; s=arc-20160816; b=XjfTyE3/eIVX1J3hXCCjNfkdz91cN1Z0Mh5NrpzZ671dx5hLCjr3/44z6x3v/LhhaL b1Zi+LpcnZqHkH9lGonOb2VzkOpRtp7wbWdjFd7lCIbG1T1hgI0Af/jAaN8nnaLJcLVx 9U544JCrDuUW8PWxgTbxnCqJS+iP+K79017U0YMzHK5iCVLzIroimPOy8EUB18ZQogvv zAPkXHbPOugVActAvFnmV8NBiaWpm+D2ZiwnisNv9mS4xYQ4iEkYfsB3dLw7NXIGPV7m H9kycq9wHcWClsO9MaG3svDyZ2HW83FkFeiO3ouJHxH/Y7utI8j+e8cpK9sWwd01dKlR RAnw== 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:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=3ALxF9CDYQ9WHQskfljeXu07Uy1IGmhBrcWwKUSO9qQ=; b=YFDE3B+ZSem/r8pAl9Yt0Mmkh0b9Psj4ERPHulzTa5E8f6jjBQUnOgYaDRuDToKtXh zsV0OT7glADfgF3lzDfGigg12NQ5qVwul9bcvteJ567zBA5ipseIjpGcdKIkmGf3wf0d D4zugtkqrT3EmvdmjImx5u00s3gov5xIzp2i0H3FE0TnDn4IyiqZ04GMLVB6t4ETaApx SsLVBtIap8f8nfk1tLIb8HA8O4VjqBt0w2y2aHeHJuTAJJHrFtRSEV4bh2bfba6NtN5a /LXa3XaG405ypKH7tos+2ajTlqOp093XYO4QPDkkq48Fa0zk79C5QU2Zu75XN6TuWayH +RsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=qkfKz7+3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id gh16-20020a1709073c1000b00886de65e971si17403036ejc.698.2023.02.07.08.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 08:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=qkfKz7+3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 9BE053858C3A for ; Tue, 7 Feb 2023 16:50:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BE053858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675788646; bh=3ALxF9CDYQ9WHQskfljeXu07Uy1IGmhBrcWwKUSO9qQ=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=qkfKz7+3YohS25IFI/DsPx912Y3QM6VFGYI69TL3hAQ8IrOE2t4ER501GTQOZde4s z+W6BINOwndT7ct/gt+qn0NO9sBAFvrh9ErcpfoUTBX+Jb+v9COSiThSQ8dab1g1Np uTN1+WJ92NkXejZWlDh3noJf7xFmQFHKhhPW10/Y= 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 5C69D3858401 for ; Tue, 7 Feb 2023 16:50:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C69D3858401 To: CC: Subject: [PATCH] testsuite: XFAIL bogus g++.dg/warn/Wstringop-overflow-4.C:144, PR106120 MIME-Version: 1.0 Message-ID: <20230207165000.AC93020426@pchp3.se.axis.com> Date: Tue, 7 Feb 2023 17:50:00 +0100 X-Spam-Status: No, score=-10.7 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?1757191757294349191?= X-GMAIL-MSGID: =?utf-8?q?1757191757294349191?= (sort-of-ping:) Aldy, I missed CC:ing you on the similar https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611206.html would you mind having a look? Tested native x86_64-pc-linux-gnu (w/wo. -m32) and cris-elf. Ok to commit? ---- 8< ---- There was a commit r13-2082-gbf13a13c65bd06 "c++: remove some xfails" (not referencing the PR) that dealt with part of the PR, but didn't xfail the ilp32-specific (bogus) warning mentioned in the PR. PR testsuite/106120 * g++.dg/warn/Wstringop-overflow-4.C:144 XFAIL bogus warning for ilp32 targets with c++98. --- gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C index 3716d2d13be0..35fb59e02320 100644 --- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C +++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-4.C @@ -141,7 +141,7 @@ void test_strcpy_new_int16_t (size_t n, const size_t vals[]) int r_imin_imax = SR (INT_MIN, INT_MAX); T (S (1), new int16_t[r_imin_imax]); - T (S (2), new int16_t[r_imin_imax + 1]); + T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { ilp32 && c++98_only } } } T (S (9), new int16_t[r_imin_imax * 2 + 1]); int r_0_imax = SR (0, INT_MAX);