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: 168062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp1044356vqb; Tue, 21 Nov 2023 18:04:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpov22QCqfLsAEJEO9W9BoNKMtLtLAJb/eSmN9QYVwb9lgJGnIwBNLjHdZxhEuWrU6p0o1 X-Received: by 2002:a05:622a:342:b0:423:75a5:2a23 with SMTP id r2-20020a05622a034200b0042375a52a23mr1150064qtw.58.1700618693877; Tue, 21 Nov 2023 18:04:53 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1700618693; cv=pass; d=google.com; s=arc-20160816; b=NwCfPjf+A7CSn+H7LHu6l1g8NHAWlgJP/LLKX42vgDQbA2S8/t6B+UbNyySl4OCsEX A4rxkbs10G3D6Cz4ysTZr8IWGwrlQrlCohkTfRP0h7+o83vKj9PgnfHKRO9DbWQi9JZj Btdx2azcXfpceZhLHHtVqJjqRyBEqEu0TETYmvos2DC8s6j/s7DqFbYfYn6GGwBlOGnN vUy5dQsckQCJ7lQ1TsEUz4f8s+YBK43x3QuCu0iR2/HrSdpRFyK1yxsIiNVNpvSEj72t CsrQW2dhtRAk15UOozpSXanInPEJ0bLlHDj4JgKptnMxnVPK3lBr06L89nex1OZbAKK/ J8hw== ARC-Message-Signature: i=3; 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:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=xMwKuKjhny2b7+0FUKqZTPeKmxC8NQc1dPr5a6oqLKU=; fh=UA5DU+cHANxSbDYvj2WtNoD8nnM6YCFPDl/6reJsSrQ=; b=O2jHWFsMDBUaVVMXi4S01tXLv5mvTfnAkOv+LmIKDK0nEqI24Mmwk1OHEEM+8gw4pp NIz5G4VgdkDroO+6w/jOtU9Prm9ycC3ADyj4bgD85y1RixCpF6XptgFE2SPaSW6+S8VL Zwwq+wgHrExSNykzxCYgTLKEeXAQt1WiEA/ZH378Ruau8k1m87lZtY72hdgzDIWvVyWC sczIj36SjloyExvxpftVfCx29l9jey7EMOn6WRn5SmRmIFxclUdWbNfjHitYKrmBy4Tt AGxIrP7m63BRYGmhs2B4q4O8Q1niOfdqW3J+yMhSAch0u4bB/jf18TXO4cEXFsAFavC9 9AoQ== ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b=HLpJh8Pw; arc=pass (i=2); 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=axis.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r16-20020a05622a035000b0041979a08b5esi10611079qtw.726.2023.11.21.18.04.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 18:04:53 -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=@axis.com header.s=selector1 header.b=HLpJh8Pw; arc=pass (i=2); 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=axis.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A30283858C74 for ; Wed, 22 Nov 2023 02:04:53 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783227947766628898 X-GMAIL-MSGID: 1783227947766628898 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);