From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2064.outbound.protection.outlook.com [40.107.104.64]) by sourceware.org (Postfix) with ESMTPS id F02503858C2B for ; Thu, 23 Nov 2023 17:05:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F02503858C2B 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 F02503858C2B Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.104.64 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759118; cv=pass; b=ujHSzoK3w59seoofwktqSY/tReEO4DIeZifJIkvbgfOgvacx+WHKn+x8Ei9qS0EuDMAuStBbxywJwIyekSdlTY7Ruo7u23U4aLROPSk7fls+TlbU97sjPD5hlcR5odGS5/zrrQAm7mEf/mMigSjRgIANYjAyg0HTUOzovR9Q7S0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1700759118; c=relaxed/simple; bh=XhAQVMz3kg1oEwkamhkbJzQyk5IdJ/9RJtSjyVlXjOk=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=nmK4W7nW4pi0kHlwO2H/EkDNdzIthzfJGN0+DCZfEBI1ZIp6jfkJfydh2LeUi7Jv+KrQXSg+ezLLhZZWXi7kMs4lnGZ+GwnpKKgPt8goTDj/6vKKXkOKTl2jImoX39Hy/kQBLdYhPjWmJu9OFFct1kYaJeKY6u5+RqDVdWTZ5Hw= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kHrKvHr0mkdXI9DXn9O/9/08FfiaOQCct98zc4iy76PaovFE4m3TITl2mf63ctsLvg0+YaahVQj/FmkIzftz00ombdIwhWu7C6OC6oIFp5NbXQjzz5sOBLl2HcBfR6ilFExJrg1jramKI+40TGd5T7BCdFzCuFOHyaYasObp5wbecc/tGdoxHeAoap0kEh4hJp1oGdkjZSou65pSc2M+STiILvDfLlbQPWN2K6kuu/miZ82+vT0eEABdYw/+EhLUPDt9SzkqlX5uji3o36d5XKtfyNTaZR4QwW8ct6YT5vl8YGTexRJybfakXsIgu4jbFvQFLDdDA61q5aXH6uzN4g== 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=/UH8jTpIqmT5yNaelD6lJ8MNi4nLZj39Z4j3ZRpfP7U=; b=ab/Ws84rsYo1qyv/923j4DdtqaJWOIW8SwdsyUllWnSvXMwiEkganaGvn9POgrpX12hB2G9X+s2JDza43sqYzQVIQBF+7Ub5g/dy4aLive1a3YwZktAIkaryR+tmuH2Aek56OHSSW3RBEASpZ8W9uP7gXsLxvJkPeUUt+WhjhscmzsVMmg251wmVqHywkBZs2N9UcYuoAdmV47peO45PJKfr+12IqYDMY9rL0IlIauzyEcVCSgjiD7A07zklBJaWZAAIQU7K26+1b9ZhJrUAwo29Rh37OdkdzYKSC3Re5WOTxghSaIBIzwllz5BXakkg3QnVC7iJVtd3PIZ76bDGKA== 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=/UH8jTpIqmT5yNaelD6lJ8MNi4nLZj39Z4j3ZRpfP7U=; b=cyePKZm6qU47/06MfurgfhaaGXfzrt4PH06BH4GT1Y+qOe8CJ9swgaufH089bwiFV5pSWuJaMLPV6dzpwPt1uw1zfSG7jHOoNOFXzTizOV54eqTkinlqNFXE+4XjouLPYYhT8S6NaH+7bzEMolVMnzpBpOzRReLlYCEqXRjdnzM= Received: from AS9PR06CA0008.eurprd06.prod.outlook.com (2603:10a6:20b:462::22) by DU5PR02MB10847.eurprd02.prod.outlook.com (2603:10a6:10:526::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Thu, 23 Nov 2023 17:05:12 +0000 Received: from AM2PEPF0001C70A.eurprd05.prod.outlook.com (2603:10a6:20b:462:cafe::13) by AS9PR06CA0008.outlook.office365.com (2603:10a6:20b:462::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20 via Frontend Transport; Thu, 23 Nov 2023 17:05:12 +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 AM2PEPF0001C70A.mail.protection.outlook.com (10.167.16.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7025.13 via Frontend Transport; Thu, 23 Nov 2023 17:05:11 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) 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; Thu, 23 Nov 2023 18:05:11 +0100 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 23 Nov 2023 18:05:11 +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; Thu, 23 Nov 2023 18:05:11 +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 0A495E7C0; Thu, 23 Nov 2023 18:05:11 +0100 (CET) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 04C0720427; Thu, 23 Nov 2023 18:05:11 +0100 (CET) From: Hans-Peter Nilsson To: CC: Martin Uecker , , In-Reply-To: <20231116042406.B834320432@pchp3.se.axis.com> (message from Hans-Peter Nilsson on Thu, 16 Nov 2023 05:24:06 +0100) Subject: Ping: [PATCH] Fix PR112419 (was: [PATCH] Reduce false positives for -Wnonnull for VLA parameters [PR98541]) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT References: <20231107035835.7BC31203F2@pchp3.se.axis.com> <1e832537-f6e7-4599-8b35-6710f79b2a46@gmail.com> <20231116042406.B834320432@pchp3.se.axis.com> Message-ID: <20231123170511.04C0720427@pchp3.se.axis.com> Date: Thu, 23 Nov 2023 18:05:11 +0100 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF0001C70A:EE_|DU5PR02MB10847:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ba1bfeb-79b6-4ea6-2cba-08dbec465ac7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YvFVkCIUFe7XIn7zdUVJ3Cf5oplq16hmnuToiss1cg9wbkAXyXtMboBVKe4LLP2TSOdGkYhqWLLk/SHb5bcniLo5UCJt+Kpooojeizyqh0C9mm9YcWPxrwFPLdSMYK2SaGiznf49lbtj8IyvLLRZ7IZEx2TlgQUZ04n+2GtgsbMnFtFnkSQiDdnT8nuwNETDkkugdw6diO26xjQjbCIxZ1OnBu+CbAXdhvb/38f3b7w9k7iioDgfCSUkQouPzF7WuyJ2/baqGXWa9jeeqkNdCzvWDnjbUeyYESrtzE0xsbtuIEe/4AxRF9EHWqpAwg5EStahPEFuFgFrc7g1AD0Uej86m98u6M8DkX5yD6evk8omaQkPUBYfLWEL7c4B3B1cZEZO0qqtlSbrSiwD2K9bxTNUyKPwZ0OOiMXiZgj9pncPpmTr5FlH7fhgqaR5Fu7APCxjz3wNVxXqKfWe+IDgO/7mY86gKlSK68G9/WkwMUhHUgc04Gr+i8nsDQpYfJb9gLBgykgSOUyMm/QzD9tc5i7qDeM6adED5fjzWXOf0Qhr2Zlf1mq26RUuOa7h3g0WgByHOQbkl3rSjYHcX/i+kd/xFfwVGUHpYiQfGaObNZM0fvGFEontX/Xi5GgY6DD4cFCekpNHPcZ3+7tF40tKf50Uyek/AywNFNAe3SFIJZMyUZWFizyXPDAfkB2Rhhwj+kDQy2guXlnfUCrEd9qU65Afe2kC2RVmylXS3P7RIfht320SiVlOIZtmPHAXCS0j0uUtC/aXQukfEgTvMTFCvMorq7eFq2BdRv1NlMZMpChYAmoLlxvscMi5areBp7C5 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)(376002)(136003)(396003)(346002)(39860400002)(230922051799003)(230273577357003)(230173577357003)(82310400011)(64100799003)(1800799012)(186009)(451199024)(46966006)(40470700004)(36840700001)(84970400001)(40480700001)(336012)(26005)(6266002)(1076003)(426003)(40460700003)(82740400003)(81166007)(356005)(33656002)(83380400001)(478600001)(2906002)(5660300002)(53546011)(4326008)(54906003)(36860700001)(47076005)(8936002)(70206006)(70586007)(316002)(8676002)(42186006)(6916009)(41300700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 17:05:11.6988 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ba1bfeb-79b6-4ea6-2cba-08dbec465ac7 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: AM2PEPF0001C70A.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR02MB10847 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 List-Id: > From: Hans-Peter Nilsson > Date: Thu, 16 Nov 2023 05:24:06 +0100 > > > From: Martin Uecker > > Date: Tue, 07 Nov 2023 06:56:25 +0100 > > > Am Montag, dem 06.11.2023 um 21:01 -0700 schrieb Jeff Law: > > > > > > On 11/6/23 20:58, Hans-Peter Nilsson wrote: > > > > This patch caused a testsuite regression: there's now an > > > > "excess error" failure for gcc.dg/Wnonnull-4.c for 32-bit > > > > targets (and 64-bit targets testing with a "-m32" option) > > > > after your r14-5115-g6e9ee44d96e5. It's logged as PR112419. > > > It caused failures for just about every target ;( Presumably it worked > > > on x86_64... > > > > I do not think this is a true regression > > just a problem with the test on 32-bit which somehow surfaced > > due to the change. > > > > The excess error is: > > > > FAIL: gcc.dg/Wnonnull-4.c (test for excess errors) > > Excess errors: > > /home/tcwg-buildslave/workspace/tcwg_gnu_6/abe/snapshots/gcc.git~master/gcc/testsuite/gcc.dg/Wnonnull-4.c:144:3: warning: 'fda_n_5' specified size 4294967256 exceeds maximum object size > > 2147483647 [-Wstringop-overflow=] > > > > I think the warning was suppressed before due to the other (nonnull) > > warning which I removed in this case. > > > > I think the simple fix might be to to turn off -Wstringop-overflow. > > No, that trigs many of the dg-warnings that are tested. > > (I didn't pay attention to the actual warning messages and > tried to pursue that at first.) > > Maybe think it's best to actually expect the warning, like > so. > > Maintainers of 16-bit targets will have to address their > concerns separately. For example, they may choose to not > run the test at all. > > Ok to commit? > > Subject: [PATCH] gcc.dg/Wnonnull-4.c: Handle new overflow warning for 32-bit targets [PR112419] > > PR testsuite/112419 > * gcc.dg/Wnonnull-4.c (test_fda_n_5): Expect warning for exceeding > maximum object size for 32-bit targets. > --- > gcc/testsuite/gcc.dg/Wnonnull-4.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/testsuite/gcc.dg/Wnonnull-4.c b/gcc/testsuite/gcc.dg/Wnonnull-4.c > index 1f14fbba45df..d63e76da70a2 100644 > --- a/gcc/testsuite/gcc.dg/Wnonnull-4.c > +++ b/gcc/testsuite/gcc.dg/Wnonnull-4.c > @@ -142,6 +142,7 @@ void test_fda_n_5 (int r_m1) > T ( 1); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is 1" } > T ( 9); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is 9" } > T (max); // { dg-bogus "argument 2 of variable length array 'double\\\[n]\\\[5]' is null but the corresponding bound argument 1 value is \\d+" } > +// { dg-warning "size 4294967256 exceeds maximum object size" "" { target ilp32 } .-1 } > } > > > -- > 2.30.2 >