From patchwork Wed Nov 22 02:04:23 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: 1867104 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=selector1 header.b=HLpJh8Pw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SZl1R0yl1z1yRw for ; Wed, 22 Nov 2023 13:04:42 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 13FBC3858C20 for ; Wed, 22 Nov 2023 02:04:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2047.outbound.protection.outlook.com [40.107.7.47]) by sourceware.org (Postfix) with ESMTPS id 1B5223858D33; Wed, 22 Nov 2023 02:04:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B5223858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1B5223858D33 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.7.47 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700618668; cv=pass; b=CoRFJ5hMnJP4uQMFP9FMjNyezAxr9ZLRtMyczYtgizHVDKYy6CJC3XaGt/10sAP/nWnUFvacqcZcwFLFSCSzZz1WdESWez1ao+YS3zvfGqgp7kPlnHHbIgADg5HQ2cuvKjd6e1ssvdSUckzXfGwLIkGgVH8+eqNzuLvTQtkUloI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700618668; c=relaxed/simple; bh=cVymQVmbPdN6boD8yj0F7zANpyfB4uCHpwZPhO77FQE=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=u3ndP4Iib27jRNaItSOm4yZ7EaIWD7YBGA/QGevmEELQiXFVoeoN7bKgdNOuZF++TDkwjg9HqhcB6RS1z+19KErWqat2xFmEygVjf+c5qCLWi0QQWELC3gKX30FTdqmpd8cI1K4RBlFa/tb7Ltbqtajo6y0DMdQc8hwXhRgrrEA= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NGMCW+jGfQMH8kfFtrX0vqVMKflmMqGbhKVKqDK0u8Py9QjhVWoUlHjf8AG37Q9Q8/fWlmyl//tP9dlr3kDa7Tbeg/fzUwe1TinyBGGUgLF78y1M+xb44UQs6vv17RJIM9MV1vC/qxF+quYSlVJqT5rM857e602dLKHQ/4c+DzCKcO4GQADgTv+gjZ30KvafYVd2LVGuGKqDKyOSo1Za0hWr0oWx76y7RX/LgSasBw1WmS/eXwChdPPSQnd+fLMO9n9GVNXU6ZRDbbg8y1vszLfNJjuBp1Dmzca1N9QwRVXu/9L8z0W5r7LZxlJfT2YPhXclqzvqypgXTvKcM6EuJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xMwKuKjhny2b7+0FUKqZTPeKmxC8NQc1dPr5a6oqLKU=; b=Pky0omvhGwIL6u6T1CbRs0XNPSx0hvLnicxr6qtcxR1KdzxCYTbKjy4Se5AOp0twjG7eQ7RZtSrBhso8j9c5vykT6i8S2jtvcI2ZgClIbIP4mIoTWGz3qzfuIf5qEnOqskYpXcvCC3049P1MqYM0MxCOMc7PGICXZxAxoprbHkQOCTzclTdyOzSJ0p/Kz1Ae1npnLRgXiVUIZN9IRunpYCqmIbR4/+w1d9OaerhVS/sfsWVILXnUJvCzZJctxGssozE1Tg9SimvmbANehonzKpfpc63lY+eTsgYEQppQg8OpYSQXw2nUSMk3B+U+cMDFT81w6QYOl9bKs6JVI8+law== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xMwKuKjhny2b7+0FUKqZTPeKmxC8NQc1dPr5a6oqLKU=; b=HLpJh8PwTMmv9b9m+/wM4JW9rH7Bz+lBLuME+eeMd/HrWZT4G9/yrtDXzOLTcxlPHCsMyq7wc16+CzhQiTmAuAzMhLsnc1QFM7mMDm7OSRCvEzKjuJPPkcCsYB8Pd8J2xPuAFfFdR5xONJc9qvr+aqr7HSiMx+U4u+eV7woNC9s= Received: from AS4PR09CA0015.eurprd09.prod.outlook.com (2603:10a6:20b:5e0::20) by PAVPR02MB9964.eurprd02.prod.outlook.com (2603:10a6:102:31f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.28; Wed, 22 Nov 2023 02:04:24 +0000 Received: from AM2PEPF0001C70C.eurprd05.prod.outlook.com (2603:10a6:20b:5e0:cafe::af) by AS4PR09CA0015.outlook.office365.com (2603:10a6:20b:5e0::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.28 via Frontend Transport; Wed, 22 Nov 2023 02:04:24 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by AM2PEPF0001C70C.mail.protection.outlook.com (10.167.16.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7025.13 via Frontend Transport; Wed, 22 Nov 2023 02:04:23 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 22 Nov 2023 03:04:23 +0100 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Wed, 22 Nov 2023 03:04:23 +0100 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 0107EE5D0; Wed, 22 Nov 2023 03:04:23 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 4699F20424; Wed, 22 Nov 2023 03:04:23 +0100 (CET) From: Hans-Peter Nilsson To: CC: Subject: [PATCH] testsuite: Tweak xfail bogus g++.dg/warn/Wstringop-overflow-4.C:144, PR106120 MIME-Version: 1.0 Message-ID: <20231122020423.4699F20424@pchp3.se.axis.com> Date: Wed, 22 Nov 2023 03:04:23 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70C:EE_|PAVPR02MB9964:EE_ X-MS-Office365-Filtering-Correlation-Id: 85b3ccd0-9451-4f7f-073e-08dbeaff592f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ja9inWa+UNowewn1v3C6cCLQjGL1OPn3RC2gaECfbunkzrP307cdYdAJraEZ8RvYv59EAsknFj6enWZXVbz/qcSk6uwDnXMlWMfBJLF0ibIPzpS9lRxU+AzbKt56ARLWOPtFPM6UL67QiQbWZAesvNZ9NXa5njgAWJ1qJbqchZZfivrNjh7oiQfeWWa2OK0V7C43RWVg81n9lDcAp0VCrQ3dp4XkSLgRpqsXljXh58NqEQhVot+hsk8nTmdIuPhQScqlSPU/MmkFr14UVQsgqdojhTAbWJ2NdDKEkt6ll7XfWO+fV2sKdHxcAdXFFyymXQnBuLlGnKh0i7Ij2RbgG8IyNSbUgJYNdOB+4aio/n51JJ0VrCvMgVabLSKaEMfgUaB2Ltb9FLLZNErJ16732sNS2+FRpTqFWGkCsr+ei4MbXJNqgA7gcRno93wxg1TTAd0pGAyHkmX+kODSfpcRrvEQr0hx46r+3NqFmJfuYHYiNFsZgqHrK8f/gzj7BO6cxpuct6bZdcdZTiLdOthAbrIkoeKHGRUSnM6FCcGq4hKrZkT2Bjk8ol6nB5N6SEPWltDDSfmx3e+h3uQDNbx6sInWGabxrr5Xe9IxUBONcIsv8FjYtsiChgCWbUWNalUNhJVaYSsb19fmVkaVkTGpmjGrE8tT6qvmwIv2LHyCdlCrbz9qP7vvq8JK4uTTO9adeedxzFMlhQr31AfdWRz36f9c6KWTKny6wynHz0O1cUB5uYis/vmVQH4pHyl6ZUauU78P0NW76hDZR20Dk6LJxR8XFUP0QYBtaVjm3BqLSiikXKCaC++Ol86Pfc4KcaT4 X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(396003)(376002)(39860400002)(136003)(346002)(230273577357003)(230922051799003)(230173577357003)(451199024)(186009)(64100799003)(1800799012)(82310400011)(36840700001)(40470700004)(46966006)(40460700003)(6266002)(426003)(336012)(83380400001)(81166007)(356005)(82740400003)(33656002)(47076005)(36860700001)(450100002)(41300700001)(42186006)(70206006)(70586007)(4326008)(8936002)(316002)(8676002)(5660300002)(2906002)(26005)(6916009)(1076003)(40480700001)(478600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 02:04:23.6559 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 85b3ccd0-9451-4f7f-073e-08dbeaff592f X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF0001C70C.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR02MB9964 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org I added that xfail in February for { ilp32 && c++98_only } and it looks like it's moved on to lp64 now. :-/ Noted by Rainer Orth, see the PR. Tested cris-elf and x86_64-pc-linux-gnu w/wo. -m32. Ok to commit? -- >8 -- The conditions under which this this bogus warning is emitted has changed to not happen for 32-bit targets anymore. Adjust accordingly. PR testsuite/106120 * g++.dg/warn/Wstringop-overflow-4.C:144 XFAIL bogus warning for lp64 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 275ecac01b5f..2024f8d93ca3 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]); // { dg-bogus "into a region of size" "pr106120" { xfail { c++98_only } } } + T (S (2), new int16_t[r_imin_imax + 1]); // { dg-bogus "into a region of size" "pr106120" { xfail { lp64 && c++98_only } } } T (S (9), new int16_t[r_imin_imax * 2 + 1]); int r_0_imax = SR (0, INT_MAX);