From patchwork Mon Jan 8 12:56:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 185985 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp997803dyq; Mon, 8 Jan 2024 04:57:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVGueXKfdYhY2bJtZPIDCypikkwBd05dPeEX3G5M4knt8ON/7Nue5HHpn5KUrmgJpxx+L3 X-Received: by 2002:a9d:76d9:0:b0:6dc:375b:57e0 with SMTP id p25-20020a9d76d9000000b006dc375b57e0mr2347023otl.59.1704718653969; Mon, 08 Jan 2024 04:57:33 -0800 (PST) ARC-Seal: i=4; a=rsa-sha256; t=1704718653; cv=pass; d=google.com; s=arc-20160816; b=QwhnUQvQ/tqLp4vvldC8M+rFnC/UA+EH8QUzrsyOEOI3GaN3M/syWHmRIyBHCcRCAM o+h1Cuqwn1VBnGq6MdRy4tVK0w6n2fCQMUcpZ872iMhVnYEKhD1HUIbjPnnO4uDZ9tm7 Pt2rs5z1Z6Oskc03IPs8x40dR2Vcn0SuDHabu4QHe9ndDoZFDDWE/ra7WrAv6AiZSmAh Cm44x8iBdZUFdLLYeXpN4kMfZB4BisnZ3cFX4Z8REfkpmSVaSqJilGolGebeO7Wwt6HY YZ1UndMLw5mhqnrw2DGUZYvHYGMIbblDFw6rX35OEwB0JSDbNtNdT5GvkLvbsBaX4rC2 44pQ== ARC-Message-Signature: i=4; 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:original-authentication-results :nodisclaimer:mime-version:content-disposition:message-id:subject:cc :to:from:date:authentication-results-original:dkim-signature :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=W83OGWTrv/8cZmjnFP14IUKDECPFFABJ0qhSidmZepY=; fh=6Xjv7Twmq859OvRPE2goEVI2hxFJHWH8PCZLERMX3Is=; b=CbX2leVHTR4uhzMCu4FByUf7e4BChX8BwhtxVU79/yqwfEJkx7OcBTBRO+PfpiN9L2 irDsMLgnk63XHBehHM29vRGFWCQG8gR0nXmpDmlegI4G1JmgRRB8D4EIEklipmy3lPhs 6JgBXESGmVeKfiFtoLmvnGDacimPnmFh04nUTlH6yYMnK3O8/WKrFqt3WxRc8wngZ3no Q3UyrluDiSjcSlYNkkt/kfhQV9QGLUKZu1qEc3Bs7HZ9FRl1ndgU/WkDruohbcHW/Yu+ LR+cFwwyTarNrLuwsdDAo6REvm1GndQVKSMDPHab7+5y1pcw5dgNIQC93fwpKpOnIO1E o8mA== ARC-Authentication-Results: i=4; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9qkuGPWO; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9qkuGPWO; arc=pass (i=3); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f9-20020ac85d09000000b004281f60d38fsi7745235qtx.309.2024.01.08.04.57.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:57:33 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9qkuGPWO; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=9qkuGPWO; arc=pass (i=3); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5FE53858283 for ; Mon, 8 Jan 2024 12:57:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2088.outbound.protection.outlook.com [40.107.13.88]) by sourceware.org (Postfix) with ESMTPS id ABBE03858D28 for ; Mon, 8 Jan 2024 12:56:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ABBE03858D28 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 ABBE03858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.13.88 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1704718615; cv=pass; b=FK/Tn0rG9Bospv/DLqQ0nl+EORMChOK1qYeeHRxIuUFgoOgr9nBNi0TGoCcjJGAga5KfQFgAD3qcVBfnR6tTepNv6lAz+OWjhvGUU1A5gUWI/4ux0xQEXGISlkVkCjH53bzus6r6UR/MMwa0229j1aW2KIvxQyxp5jYIgTo7fAg= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1704718615; c=relaxed/simple; bh=1uSd2HgqKN6LVLoUcC59nZPv8bI97SVSOue+yMzTVGE=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=aHdIuzSM5+bTUOUyBwBYP4+6GPQU7BtqXXNNyJzNWjssXghnHu0RjIqXLrkMk2Eca9QkbuPrK8+qM8BHF1XgtejaJezkveCu8o54Mbh2EIturYl8Y+q5cRYZ8s9BSPxNujHWmpRyCk/K8H7ugTabwkAWHzo6HMfC+Yim4YxU9Ec= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=WlJIoV7TkiWPkRMYeDCefBubBMbR3d9Da+TaORTw4Gjj4kGf3O+QqhDCYLAwafbFSWS9RkKc3O/YS+41CyHFTPtaXglyvP8cc3qFvEC3CyZG1uaioL9f+KFPrzRh1jzEd5xwt+TnqE0sR1vXKZGE4JI0JMVaeufJyvYA5DzBmAw3b0uqaBgVuiMDwaL6XwY6+N8xfF3/wDjCBwoFTn22UMih5zpl9/HBvtXwbac5FYGWzLUpzQ0eN8DiZ1nXMA2OsxXDPekMtSKQizhnVLWhOCHuGm3hHtSUx5eD2GCSnGTMORjgU0hFSCo/fAfYKG26kCocFGN2HGZ8MEiQu93S/g== 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=W83OGWTrv/8cZmjnFP14IUKDECPFFABJ0qhSidmZepY=; b=iaPQ7me45xqgB8gTBG5k5YWmyk1wKTSbKmVKdd58iB94oVfoYYr4v982gz92hJVzVfxZ9pHFBhJwkxLwRWhUXd9w5u3+Ea5ezA0SHTbBQ5wejQFmZ5NQrlIEQ8XFRm7Lczl0ZOMDJKO3w1Us8lYJ8R0EkT4PU18fMzLaUZqd1rKy88oIFTesH46JbhTscmUFuVsptBelatI/zVTL2t6Vsw1JIK8oyAB7x0YFcoFogZpBaiSgzEnXIczp2uGWVnwPkAHzQpRPDxAqnaYXDieRuxvg/xbC76Gv+XeSt49xkpST6lZKmNpXLBGKwxi2F43AwKZW2OGbZIDaoZDae6mGjw== 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=armh.onmicrosoft.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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W83OGWTrv/8cZmjnFP14IUKDECPFFABJ0qhSidmZepY=; b=9qkuGPWO3da14FIprqZfcvLIJB9mMa8gUR4j1JnqbSIg/p4TPGbkl9zB20jUODK6L5ty2X4NQ4c/romk9uuWxOsMxqg5zPnyJoRxE88m0ulB8sSXdgKzas5yB2fOuHfedQ6l35wAeX96fjZ29XXjpagx9HkWhxHvoQWEBgN16Z4= Received: from DB3PR06CA0032.eurprd06.prod.outlook.com (2603:10a6:8:1::45) by DU0PR08MB8205.eurprd08.prod.outlook.com (2603:10a6:10:3b9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Mon, 8 Jan 2024 12:56:49 +0000 Received: from DU6PEPF00009528.eurprd02.prod.outlook.com (2603:10a6:8:1:cafe::b3) by DB3PR06CA0032.outlook.office365.com (2603:10a6:8:1::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21 via Frontend Transport; Mon, 8 Jan 2024 12:56:49 +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=armh.onmicrosoft.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 DU6PEPF00009528.mail.protection.outlook.com (10.167.8.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.13 via Frontend Transport; Mon, 8 Jan 2024 12:56:49 +0000 Received: ("Tessian outbound 968ce956f8b7:v239"); Mon, 08 Jan 2024 12:56:49 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c656b63d5da723cd X-CR-MTA-TID: 64aa7808 Received: from de17d89d8a81.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 32DF8834-5D12-430E-9468-841D6E8AF470.1; Mon, 08 Jan 2024 12:56:43 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id de17d89d8a81.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 08 Jan 2024 12:56:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eCLOSfSnGTjebVaohRGW+bF2dAuBgal93pkKB5/ZxpwDjx95iuPL/QiiZkm6gAxUKKnjYJxQJtx/cox5OjobOv6S0VH4WrVFBBIeQ624VNnvKVVfxl5cqnf7oVZDmJ1yslGl1spuVCQpDm0X9W62EF5s3uYQsev8/i/FqYJHo09e9Ddc9D+c+Gr8kT7F2TqpWhIzsw6dArH+Su7MRxAEz6RfJPQZPWGlBNlsmlgCGuT27s4eEsMnTMRWn9lAvjP6uo73APzFVrQvKPVpptA/JZok/4XNeRRzt11rqp9Dv5Tg1rnhX60T0my46CuMjzanX6qg6WxNxhkXyh0h0aG93A== 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=W83OGWTrv/8cZmjnFP14IUKDECPFFABJ0qhSidmZepY=; b=HgmmnX3OyYxpc2EYqG5agYKQ685t6JIBo5rVsEddyliUpBEm8mmNEEQY7MFhKpO1S4QC5p2+MnssB30niMQQ0Ht0BtLn2ZXT0FhgS4KICOYbkwu7VrGwJ3/6SOVveWLSxcm6H7cIJ4LbAva0p8SmoK/c58swbMPdxHl+4NX70HhCyQieiCNp0649f+wJza/ztDaSQJU971DmUJNIXe1s8LDT968tk6QPZUX5S84IkJHcY7UGX5vp9MucFUrzkwrTRBIPBLff7QQ1NzAFKCE4OsXbSI+iEp5V4UV/YmMs09vcOsiHfWjSZAx075UTOE+75ZMV/q0QwffFTgYV26+mXg== 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=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W83OGWTrv/8cZmjnFP14IUKDECPFFABJ0qhSidmZepY=; b=9qkuGPWO3da14FIprqZfcvLIJB9mMa8gUR4j1JnqbSIg/p4TPGbkl9zB20jUODK6L5ty2X4NQ4c/romk9uuWxOsMxqg5zPnyJoRxE88m0ulB8sSXdgKzas5yB2fOuHfedQ6l35wAeX96fjZ29XXjpagx9HkWhxHvoQWEBgN16Z4= 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 GVXPR08MB10639.eurprd08.prod.outlook.com (2603:10a6:150:14d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Mon, 8 Jan 2024 12:56:40 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9679:2ab0:99c6:54a3]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9679:2ab0:99c6:54a3%6]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 12:56:40 +0000 Date: Mon, 8 Jan 2024 12:56:38 +0000 From: Tamar Christina To: gcc-patches@gcc.gnu.org Cc: nd@arm.com, jsm@polyomino.org.uk Subject: [PATCH][frontend]: don't ice with pragma NOVECTOR if loop in C has no condition [PR113267] Message-ID: Content-Disposition: inline X-ClientProxiedBy: LO4P123CA0290.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::7) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB5325:EE_|GVXPR08MB10639:EE_|DU6PEPF00009528:EE_|DU0PR08MB8205:EE_ X-MS-Office365-Filtering-Correlation-Id: a01ccd26-0e2c-4817-e286-08dc1049477b x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: V7bXsc/otuTkt/E2ykSLW+j60TNjC4LiEHmZTh/xMd4kYXjek+3eTHBzUtDMMRVOrHSfdzMRw9UkwqNzdVvPMoqh803Tf9umOwkISVNRAq4ctpUC4gFPmKih0GdjTYUAgp9QnOXcaunRo4I68udEA2Prnr2eGl1LebpJkPK6G2NWOh2Y5e7ay9QJficzOqii7Sm1PhYl5IjIQw6zZuUWXbCbsbzirDMRE/uI1oLr/bYqWd+iClOEd3nUsR1LSUHmB1yM+0yEvzXNwXGz9um/7L/Zi/duwVaMGDHtQn6nbqqzP/zTPtqmVoWSj/xwHA2yxVv2KvzR2Wm+0FlxcGsR/borQCHkzEGpjvnucQ/3jHp4m2/YdKolg7fU8f9dT5hW4T5pPpOx+w3GMjmGSpu0aSNwA3Cd2AIYS/2RZHjBPdgrc6lZYZKavwT6xd85+a88bwtfghoFCO1Gkv39vTtjjYhsvvyYaDphdsm2DEbqH/QBZS0L3dADCsEVXzfUTAFLCM14//qdzGsILKPqLE3X1fQgg8fX7iU+BiIwYvWJDLqMLveMUMnfCl8nOsrbAF94OdUMcpPYuckKAIw7ixUPdAfSrDs0utqGUhRqIyQhQYIdI7Frein2JIj8eU+p1HDG 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:(13230031)(39860400002)(376002)(346002)(136003)(396003)(366004)(230922051799003)(64100799003)(186009)(1800799012)(451199024)(41300700001)(86362001)(8936002)(8676002)(6486002)(84970400001)(2906002)(235185007)(5660300002)(4743002)(2616005)(26005)(36756003)(66476007)(6916009)(316002)(66556008)(66946007)(478600001)(6512007)(44144004)(6506007)(33964004)(4326008)(44832011)(38100700002)(4216001)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB10639 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: DU6PEPF00009528.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b26cc6c5-d67e-430a-5d43-08dc104941ec X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X18TS5NALIWvpwSVGGNuyiStA7qBG7d8GCs2MeWOWwZ+P4EirEIIbZ27DmmD1qIR7uRBH2XCkB9JjanqKfmNdO8WhmNg60n32vka51Iv4QWrvwiaj/URw5nHKDuZWjFlzY6v3S/047MZUUm92PIn8E6WwEhUBIYSPwN1452w8xvNgWMVVmbgDr9FpF064/ivZcB9wIIyFJsDT91l++Lix9zjRcTqa+umG8+bZXGdBKwjL5qMOpB1B10JuFYh2uYRZMP4Jj2DuryNQE6S3lTLqxOmwqsiJCP5Fxc3/NdLCDrRpb+wkW3XUPF1XRkHkWqq1fZsf4OY68KQfOUGULnRdhRYIW9WDySNhMbBwlJ53bFjkPUkYDafFOgirZtubyOg5LLmzx3IlhRBMxGpqDUH3ofD52jUSB0Js++nfEZg9uCM0pK7ZeH444J4TgMd/mVfyKZsIMB+749zj7+3H5z8CEVkpgRr1IQPHF8OpM/UHwRg/TD9ovqGbxbWjGDR9kIoemx0k5y1Th9FQeuYCgr9utVXfF9Nn0KEshsWtKr+V+CkTWR/WEA1cgqL3APKLV0T6TfMAQwD/84nJxsXjh9dQjP7hM90LkEZ5ooRBa0N2/c+jG8IL3JTbTUoZivhxZPqD0KC2iySwAqMQ7SlpveQuoiy4+0jgMeI+WG5Ti6+yHQL/BY0zaaINUKzj06PnLLjPClMSSumNi7bNSUW6o2wATZUqx5u+sA61qIFhRAtQNthp2cIZjHdEkGAU8lHSjaSsqWmHhMV9PBSadOwnPmVLg== 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:(13230031)(4636009)(396003)(346002)(39860400002)(376002)(136003)(230922051799003)(451199024)(1800799012)(64100799003)(82310400011)(186009)(46966006)(40470700004)(36840700001)(40460700003)(26005)(84970400001)(47076005)(40480700001)(36860700001)(336012)(5660300002)(4743002)(4326008)(44144004)(33964004)(6512007)(107886003)(2616005)(6506007)(82740400003)(81166007)(356005)(6486002)(478600001)(6916009)(316002)(70206006)(70586007)(8676002)(8936002)(36756003)(44832011)(41300700001)(86362001)(235185007)(2906002)(4216001)(2700100001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 12:56:49.7726 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a01ccd26-0e2c-4817-e286-08dc1049477b 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: DU6PEPF00009528.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8205 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, 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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787527067273275988 X-GMAIL-MSGID: 1787527067273275988 Hi All, In C you can have loops without a condition, the original version of the patch was rejecting the use of #pragma GCC novector, however during review it was changed to not due this with the reason that we didn't want to give a compile error with such cases. However because annotations seem to be only be allowed on conditions (unless I'm mistaken?) the attached example ICEs because there's no condition. This will have it ignore the pragma instead of ICEing. I don't know if this is the best solution, but as far as I can tell we can't attach the annotation to anything else. Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. Ok for master? Thanks, Tamar gcc/c/ChangeLog: PR c/113267 * c-parser.cc (c_parser_for_statement): Skip the pragma is no cond. gcc/testsuite/ChangeLog: PR c/113267 * gcc.dg/pr113267.c: New test. --- inline copy of patch -- diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index c3724304580cf54f52655e10d2697c68966b9a17..e8300cea8ef7cedead5871e40c2a9ba5333bf839 100644 --- diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index c3724304580cf54f52655e10d2697c68966b9a17..e8300cea8ef7cedead5871e40c2a9ba5333bf839 100644 --- a/gcc/c/c-parser.cc +++ b/gcc/c/c-parser.cc @@ -8442,7 +8442,7 @@ c_parser_for_statement (c_parser *parser, bool ivdep, unsigned short unroll, build_int_cst (integer_type_node, annot_expr_unroll_kind), build_int_cst (integer_type_node, unroll)); - if (novector && cond != error_mark_node) + if (novector && cond && cond != error_mark_node) cond = build3 (ANNOTATE_EXPR, TREE_TYPE (cond), cond, build_int_cst (integer_type_node, annot_expr_no_vector_kind), diff --git a/gcc/testsuite/gcc.dg/pr113267.c b/gcc/testsuite/gcc.dg/pr113267.c new file mode 100644 index 0000000000000000000000000000000000000000..8b6fa08324eb12ad6493291cca8e80bd3a072ba8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr113267.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ + +void f (char *a, int i) +{ +#pragma GCC novector + for (;;i++) + a[i] *= 2; +} --- a/gcc/c/c-parser.cc +++ b/gcc/c/c-parser.cc @@ -8442,7 +8442,7 @@ c_parser_for_statement (c_parser *parser, bool ivdep, unsigned short unroll, build_int_cst (integer_type_node, annot_expr_unroll_kind), build_int_cst (integer_type_node, unroll)); - if (novector && cond != error_mark_node) + if (novector && cond && cond != error_mark_node) cond = build3 (ANNOTATE_EXPR, TREE_TYPE (cond), cond, build_int_cst (integer_type_node, annot_expr_no_vector_kind), diff --git a/gcc/testsuite/gcc.dg/pr113267.c b/gcc/testsuite/gcc.dg/pr113267.c new file mode 100644 index 0000000000000000000000000000000000000000..8b6fa08324eb12ad6493291cca8e80bd3a072ba8 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr113267.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ + +void f (char *a, int i) +{ +#pragma GCC novector + for (;;i++) + a[i] *= 2; +}