From patchwork Tue Jun 25 08:01:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 1951978 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=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=NZjxX6O/; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=NZjxX6O/; 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 4W7ckd3XTTz20X6 for ; Tue, 25 Jun 2024 18:02:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AADBA386C5B9 for ; Tue, 25 Jun 2024 08:02:31 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::61d]) by sourceware.org (Postfix) with ESMTPS id 80448386C59D for ; Tue, 25 Jun 2024 08:01:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 80448386C59D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 80448386C59D Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f400:7e1a::61d ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1719302517; cv=pass; b=u19mhKbT7wYzkiT9wMbgXOxzKRO/1+UkLJAEQuNy+JybORmCEp8rx6LS9eO1It+KZk0beC/DRmcT5IMQbfKgNXdIZonXHCXj6q2M3r4ufOz0EEErt7OXDn4l+JtN0RCkpdhgPeuYDK8skj80FWc+nir1WfooI6PkhffkrpXf5DU= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1719302517; c=relaxed/simple; bh=n/hb/voShXzpIuhOAzJZ379EfHL6wGNxaBFBmEhzJRo=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=Awglty/b4gaq06CWGwRTUDNZ1NZd/F+/2k3gaOdob70TrTKeK6T28qDlN2jF96BhEfn8EcAFy0//X/0Hs/VVnd28sRy5lIHZ0hohRZt+QWuoAQaXqPQ0kZlz9rb4dfIH3IeV6uuG3HK8KKM3AzFO3+DWFQoRm7kqtYxjbI7n0vg= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=bGDhIAIQ/LKtRJbLYna1sTN4SeMkmIAyKdkgF9Zca3mTOILqY198Urjhaya7vkNknRehss0z1rxDVBNX/N0JNDs4818bhJyIyMJavwcp5ObREDqfBvQv257hgAfJroc4y4hf2cZ+qR1c5rW+beMGSsT5CSCVKOak9s4SKHIWQWVDnlaih941WjLyePvqdXK6rJu06kFBXczBbFA0M2AwxOZmJhjMN84T5KwhJ2mgK3EhoLogbZ9Z5bS5b7q5HURUjTGMsTADcFOK7FCgCT287rFphtHuhQuijfrCgGs8bQt2ysB3imDGvJ7zlsHdjt54LdypHtY3DGfp4TNgg65yoQ== ARC-Message-Signature: i=2; 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=jwSDP1uHMKbiovzHtT9wiGZS13ZouuH9hdMEku9WX2g=; b=aSuAY8MeCKyWodIF8jLN7Va56RPAh3KtqcdCtvNtG0/iSbHAAs8npgkG+Mju9OMVy03Tm99C2UO1mqlpfT66dV/mfx2VQVioTk9TsDlu6AUoh0gTxjq/9UMSsRJZPWzG6UYGarh4YRwZI90uVpBSxi5CsLF/7OgxZ/AXrhFMIcA+jpL9fygnvroOtP9+Xr1Pn4RfX6cWSKa60675MrD6JnSmJX683TmGMT6Jww9Qen2TJeA92lvzyzO4jylfV2zX3z1dkkg7kpowTJ7WpygD/MfwdSzUsYkZ+v76NL1JO4mdOoeni/U0STEjEnllTQ44hJeApvVgYIz31Ue89kJs+w== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jwSDP1uHMKbiovzHtT9wiGZS13ZouuH9hdMEku9WX2g=; b=NZjxX6O/TPfzzx6s4JlNfQqRp5na2oNyC0eRCD3gpgYX0UItwmNUye+d6iP/DVRSciG9qHFB39UEzylQj40UTktdtQtZU6I2KPVnZiLLt4NgmHZL6y0A8WkQMc6SNgpQZb+OAoIq+GiLnq5PYNX0DBDdcWssfdPUIHbjBG4D8ns= Received: from AM6P192CA0070.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:82::47) by DU0PR08MB8834.eurprd08.prod.outlook.com (2603:10a6:10:47b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.30; Tue, 25 Jun 2024 08:01:41 +0000 Received: from AMS0EPF00000194.eurprd05.prod.outlook.com (2603:10a6:209:82:cafe::74) by AM6P192CA0070.outlook.office365.com (2603:10a6:209:82::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.38 via Frontend Transport; Tue, 25 Jun 2024 08:01:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AMS0EPF00000194.mail.protection.outlook.com (10.167.16.214) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7677.15 via Frontend Transport; Tue, 25 Jun 2024 08:01:40 +0000 Received: ("Tessian outbound 41160df97de5:v347"); Tue, 25 Jun 2024 08:01:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 613f4845e2be8d23 X-CR-MTA-TID: 64aa7808 Received: from c89847278478.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D29EE2FE-D3E1-4ECB-A265-4BBED45951E2.1; Tue, 25 Jun 2024 08:01:33 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id c89847278478.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 25 Jun 2024 08:01:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cCLZ58ViucvxVudkT9wHlgXvWJSNztqTH44cwfkt1YKjBG4CHMV4//VQBWfnUmM7Kw+2wa4mB2e1bTr6Djtu8WjRZxfeIU8k00sthNGFTX0yV5lliLlHpimXxyQK5G7Pih504qlI7JEROdt3u+lrB2qf+hUfprIaS/OGqk0z3l2XFagqjVsfoCkA/xie5S8tfbk/yoT30ZJILPQmLcTLUWD9Yp2rRriamsMsIYNipcbL84w85PlOFdb6lry4yQ1sqjw2pAjgNC6EGRZEd5EMyp1DQTqhXmCpVEl++jULQyzF1ZBqk9YthIiipoHU38E5BVBwjfFGNMifxDuyv9a39A== 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=jwSDP1uHMKbiovzHtT9wiGZS13ZouuH9hdMEku9WX2g=; b=OWAtU5l1oWAdpVQEeoBTW4RO7CH5zvGaM1v+MPLZlkzyMVUhyXAllo8QjkfJtPWisccAVUH6+XOrTjRGviLXtj9pl4U1YoSrHCBI7xw9y03HrPQHVZIY4OIXz9oGm3GEqztSyrZglfXt0W69zzK1ln6OlLpQUwncNsRf4SKjcPWk/avMQyrNFon3z3VBDccXKsv1oSQqvATUwXbB9Pg0orOVjju7/PYds/Wt45ZmLL5a8I5H5QV9hi2tIrr10cviTQD3Ly913H07+fRjB6Ue4hEtfZKJgZEVixxF2rIdIPu7Jbf6jr1Eya0gNJG4hh2xXvHZwDy1jhT5MAkYyBbJhw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jwSDP1uHMKbiovzHtT9wiGZS13ZouuH9hdMEku9WX2g=; b=NZjxX6O/TPfzzx6s4JlNfQqRp5na2oNyC0eRCD3gpgYX0UItwmNUye+d6iP/DVRSciG9qHFB39UEzylQj40UTktdtQtZU6I2KPVnZiLLt4NgmHZL6y0A8WkQMc6SNgpQZb+OAoIq+GiLnq5PYNX0DBDdcWssfdPUIHbjBG4D8ns= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by DBBPR08MB6155.eurprd08.prod.outlook.com (2603:10a6:10:1f5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.30; Tue, 25 Jun 2024 08:01:30 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::89dc:c731:362b:7c69]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::89dc:c731:362b:7c69%7]) with mapi id 15.20.7698.025; Tue, 25 Jun 2024 08:01:29 +0000 Date: Tue, 25 Jun 2024 09:01:27 +0100 From: Tamar Christina To: gcc-patches@gcc.gnu.org Cc: nd@arm.com, jason@redhat.com, nathan@acm.org Subject: [PATCH][c++ frontend]: check for missing condition for novector [PR115623] Message-ID: Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0283.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:195::18) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB5325:EE_|DBBPR08MB6155:EE_|AMS0EPF00000194:EE_|DU0PR08MB8834:EE_ X-MS-Office365-Filtering-Correlation-Id: 07e34d45-cbdb-4afc-5194-08dc94ed0bb6 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230037|366013|1800799021|376011; X-Microsoft-Antispam-Message-Info-Original: Eu4cLWR3B6VoWHxJSE8eZMA1Gn8+J+xsbzavcxRMeosb+YLd8ehj1LSVdkZlR0eCgNXi4zwMeoGA2cPUYa6iAOQAMjQ4WU6vTAMvle+WnrGzezj9i+B7oIJ2YocINzf+F56gjF+CQNWIlYnfsg7XQShaQSO1oCxy7HJ9+fgV4a6nNE2lYl4jq7gq3uvs4UZPYafDt9To9h8orh8smeBbU3Sadx1hnF43TRyIFxDjERF1vhS0xClTmwuf1xnwjsEZn09E6IaccLbk3ig1VbG+/VeOxf/18GCjK/yEJ/Nsbr1dRYs4lWH4xtfFtcSygWQgLkq7bEjfGJz+fZx+i7v3paAfwCBknhAHS3tc+Mpvja9tkBFMH7XQL2JjZvrM/m9gf+zEkmrq+Rx3NzQrp7Es2lSLq8lALoLTKyKBBkQncdH5Jo21EpEiM5ebvvRfgqGMT7lYOJOq7Doer3OgvzjwGsAjAywv3KkQrOEw3Euf5NVgzcpRuIGtjLmWqWUzwjJM8uiz/0S+7H4JoUapQHtS8wAmChdDdLHSAxmQGt5fvXm9+yVK1nU7AHtfbMGhbk6irAmuK/PTKoW5s5YiPIUWSwCpKZmGiA68stzuEVQkf1cOGwoC8l48pCsenCbYN1eg1+gZTx6JOXODILf3IGltv2rRXU1FuDeqUlIUbQL2tj8ryMgTqU+xVSUR8m9pwgsLllWgldalh/cnRrfqYXvq+IHkPzZkTsZVKHALtKV+H/J8iAHl+UA+27OrNPLszF4cnYU6XXSwazElRY4B7DxeJn0ma8akFtZ4CukEquQg3QByDChfo64l3YwsAyI7IfjuBjIegLyj48PLtju+4QxKffGI1s9tN+LfgGK5F7xhBTQRaToAcwZxSQKKB/a5tWBSgbfC4ygBHDwsDpmdLXCHHD3kGD4cVQsuFxCBhPv6sK+RR3WUT2J5GRE72RfP16J4dk9+fUg/C+/0N6CIOcjPKotN1Z7u6ooxjezdoNUXpAAqwb4V+AwhcypqB9ZVP6ZuvNfhCloE48p2wuyj4bMVUfu3q++pRI3tw2Q2iLuDumItSkZVrlRZlfom/MU4kJ+Nmz6P6cuS2eiHuJEMthEopAQ+nya8lFqOsMGUA4eTwToenVIfvCLcFmuxxj1jrc6ST4toMq5hE9S2GFSzyvekIXjRqdauSPxEbNS7beKx+rPqjWQPJj7ZbFVSZxURCKzuRSFQnNRAWS1L0+hw+jmVYs32+idQ0sT3Tj7P0tufGaJByF2o3GQoySh/upPeRQ2oqWlqJj28vhvqZH5gQuh39Scjy2BPytNRpfQF7+o6YVR32fCH2FydgfViAbG+oyZ4 X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB5325.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(366013)(1800799021)(376011); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB6155 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS0EPF00000194.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 322d7116-5ccd-4be7-109d-08dc94ed054b X-Microsoft-Antispam: BCL:0; ARA:13230037|376011|82310400023|1800799021|35042699019|36860700010; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RwrvEps2BfCYqTa6RnuMAVmaWULF32g?= =?utf-8?q?A1oKlMC5ijKybtENUGFInnNjU5XoEnM0wBEFtMTot6bVXIc2XiqTqdl9qhi9ZGVMy?= =?utf-8?q?nT+0bUBUyFmX9PCJb1Ozm2jBX8Y+9GiI8dFkukvQJGvIROBYxRKQ6ldxvql/s1kkh?= =?utf-8?q?xfEine1V/TUhKj/XKwdTFkwU9l07XrqAQUMHEDeZtVPzDHpayMl7H8xVD0i2QzGbo?= =?utf-8?q?f6z0SPhq1yIwcnBXnImSpNDJhSr7l8PdiXJgFZ7S9B77glkRzyqcLuGzwz1UcApQv?= =?utf-8?q?KBJL6MqsMOKK7RvPBVFOU7jjvZ4Uo6vK9eI1CJpZFJBQ+RGF+SuxHuev/vsWN0Ywk?= =?utf-8?q?b1wz3WNsCP933jlQoMiTOqc4v9ZAWd6ga8yt+c99ZmNEZfMyFJWxPtqAfDbuDSp3b?= =?utf-8?q?vFjCH+2swVW9CnZ8zlmyVlEpdeQhzOxQ9u6mVMaNOaMHB0y6/9tFe/rZFwFkDqcCV?= =?utf-8?q?5nGfPETTnY8BoR4jl1YVnZK8ZjYe+3gD1HxntjyTdTe7Y1TicQ3qk2NgHilUumMUf?= =?utf-8?q?nzRRKBN3WTeztrrpHvW4OMEL8/kneCM6gP3RprKh7hIhcE/Q+j6/JfS6XypGULjFY?= =?utf-8?q?e53ouS7MzrQOzi2qTlFSs2hOOvi/YRMy2wuE3u1ZNr9RUhZuS86m0MqpOVFGDt0LM?= =?utf-8?q?5fx96uyAmWwcmET7V+jaCOJ99XR3XQzvstqWlgm5FFBnwIy04SxHGzu9mzJSxjW0b?= =?utf-8?q?pS0QfIpjhAvsw2RUTo76DFx0n6gQL9cri5EAUOrOc6JUaHnvgl82yEv1X40Wn075v?= =?utf-8?q?Kqcv/iZgrTrYp+0+TTpDLV1QdmeqNqLxn0vUiPHp+ZR2uYkhWJKuVF66EA7YDUbGo?= =?utf-8?q?T/Rnt5hchaoUFwfO4m5rNcJbrKeu4dyZqS2RnmTn84NwK9YVrVC0JrLSII/OHV0ct?= =?utf-8?q?ZFANu2ryOW44695C2WzmMcCG4vG7K1b5Lcm1mdr+LinXu6LOUDvBhSyZZEmOss7pU?= =?utf-8?q?GMXtoU9K+u1mAvbzBJeGyeTWSGsJiKQ6Kx6PFU7NwhKbeohg7dOxI6YwOY2Um/yqH?= =?utf-8?q?r6xzhjLbwVOsIdlB1WGwi4pTnwI02QXZZ21PvMg4kj8rY7zC19gguR4SY62kIwuRK?= =?utf-8?q?t1y78uOO/AuPFt1NdWgV+aKwilVwA1SHCWK8lYrB1Vjw/2bAb2YJ3B8K6OFrRkgc9?= =?utf-8?q?C6KDoUluxn3s/o83n445Gy0E87s2cGTbFuMD9FD796XCGGCtChOsUfHctbI7tPpgm?= =?utf-8?q?D9ebmDS3GxYaulLpd/LYZJyu6MSJUF1uz9Yk9FR7irvfilqIcSo/F5+Kua4oOw6ld?= =?utf-8?q?czCJ953tuX9nEqUItRQKfy7RJpwW71/IRtmYgkjZpX70/WH3M6C2U7iSs85fEKMLx?= =?utf-8?q?QOEy+XD7qn6caknmDU+fJcbc+n02w8LWaQ=3D=3D?= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230037)(376011)(82310400023)(1800799021)(35042699019)(36860700010); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2024 08:01:40.3800 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07e34d45-cbdb-4afc-5194-08dc94ed0bb6 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AMS0EPF00000194.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8834 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_LOTSOFHASH, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY 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 Hi All, It looks like I forgot to check in the C++ frontend if a condition exist for the loop being adorned with novector. This causes a segfault because cond isn't expected to be null. This fixes it by issuing the same kind of diagnostics we issue for the other pragmas. Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. Ok for master? and backport to GCC-14? Thanks, Tamar gcc/cp/ChangeLog: PR c++/115623 * parser.cc (cp_parser_c_for): Add check for C++ cond. gcc/testsuite/ChangeLog: PR c++/115623 * g++.dg/vect/vect-novector-pragma_2.cc: New test. --- -- diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index e7409b856f1127e303c6515a3bb2d61a10e7c378..24d7b0e4992fdff69951ac5955f304e473f53374 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -14107,6 +14107,12 @@ cp_parser_c_for (cp_parser *parser, tree scope, tree init, bool ivdep, "% pragma"); condition = error_mark_node; } + else if (novector) + { + cp_parser_error (parser, "missing loop condition in loop with " + "% pragma"); + condition = error_mark_node; + } finish_for_cond (condition, stmt, ivdep, unroll, novector); /* Look for the `;'. */ cp_parser_require (parser, CPP_SEMICOLON, RT_SEMICOLON); diff --git a/gcc/testsuite/g++.dg/vect/vect-novector-pragma_2.cc b/gcc/testsuite/g++.dg/vect/vect-novector-pragma_2.cc new file mode 100644 index 0000000000000000000000000000000000000000..05dba4db1c6544bc53cd05482d1b2e767052cf43 --- /dev/null +++ b/gcc/testsuite/g++.dg/vect/vect-novector-pragma_2.cc @@ -0,0 +1,10 @@ +/* { dg-do compile } */ + +void f (char *a, int i) +{ +#pragma GCC novector + for (;;i++) + a[i] *= 2; +} + +/* { dg-error "missing loop condition in loop with 'GCC novector' pragma before ';' token" "" { target *-*-* } 6 } */