Message ID | 20241106114613.2972987-6-tejas.belagod@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=FKTYAwD5; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=FKTYAwD5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4Xk3Pm2hq3z1xxf for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 22:48:44 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9AFAF3858406 for <incoming@patchwork.ozlabs.org>; Wed, 6 Nov 2024 11:48:42 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2060b.outbound.protection.outlook.com [IPv6:2a01:111:f403:2612::60b]) by sourceware.org (Postfix) with ESMTPS id BA4363858C51 for <gcc-patches@gcc.gnu.org>; Wed, 6 Nov 2024 11:46:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA4363858C51 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 BA4363858C51 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2612::60b ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893604; cv=pass; b=rDKe9fWDtRgfQ3EtCElbzpUBOpkKDEFvW9ul/LFpNAXQAaIsrfqZBBINzqLe6PHszhw4mS3ZbA+nG3TOJxLFJyG0sTu4eBXQJphYE+JwpTn912zCgvlDe2jirHpjjSXpLm1nSKFUIys1ytEX4rOLcgp0nI82F4XLynD2svdKn6g= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1730893604; c=relaxed/simple; bh=mKeMr48hBqDhVxl54EOdZ7tGQZlisESCM493QU9W28U=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=vbntgLsulN/I/d42/aC4uJw/R6/E/zm9NC6UihhjCOYRrvgVsqBFmK61Y0OwNfEpnfA1rt/9mQuvXb8v8OA1BRuo9PBAT0EQULxnToiZm56+Q/BRyOjGpKTalBCvwaiv2i843VsIxp2Oi6qXTe3qSvCTjL6o1D2F0Gwk5CzIw4s= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=uxIYmZbNlX9Vd9/w7ay23LHr/o4G+241EkeN7nsYIUDowlWxQ92ZIcvLUMhDF+J81y4YXijsYciL3ghWnGwukLQTIqIz6RhpdacXeM59eKDFhXhBQRTWFOt16M8twvDBvyOMjTYdeAtkFnVDBnswCY2cbXK7dI0uL5cklN9wI83lVR59vtaBx63UXr24jLdPpzTIkYe/uDYg7N4jliW+Vcp666KefqWKMsrNPQyGOgF+rLHLJfQHB9QYwKDQLMNSP4FkoeEqp1hNdb/K2tlFVt9jmCGZYkimlX9FR2j9bgCsWRk+5vfub4afkukFpBOJj6NH3hOlPQFPuvIoCqiJdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Clw+fYj0TPpu/VPc2TN+juMkYseL22NfL3JYUjaaDoo=; b=pi33U0o5E0x/xe3Wn0Gh51RIHneKpRzBE2pz6W5o07K7hCU5PGIejws7W8NQo5qFvHW7LMxRVULZYk5Y+tsr2wXtU91yPikFvVklsSkACW8lug0b3CSC3LUjVz74Cp+dWkOgS1troY8tp7ZxlP03hivRcsWjRNOkVAZzl/npjJnjnbOoiwS9yyOUO3njX8jwjLl1/IIAIF+OVkMofXmGn1r+bhRMLS1Gv0mY+7uqkN9BC60miLl18P2KW+S3E5mlHhr+Ipy3XCHJ9oCo1qoqzoTh8NS8A03+JTuwIcTRV4w9wIio4NT39TGtV3MOwdEppRWX41vhOR4qKAbDKm//jg== 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] 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=Clw+fYj0TPpu/VPc2TN+juMkYseL22NfL3JYUjaaDoo=; b=FKTYAwD5DDCzfyYNRjCjvLzSHWv8NxQ8ME+UOyl56gPh9tfJGwDa088iQ+OQMmvQy+ehmBplM1wzsXX1de/fpZBpwRLVXdAGkvLUsIrGf4RzbwumX8+s3T5ev2JypYzCP5D3LOVux6Wsr/ZzaNRp4VazGI9wOlVkNW3jBy+X0yE= Received: from DB9PR06CA0018.eurprd06.prod.outlook.com (2603:10a6:10:1db::23) by GVXPR08MB10588.eurprd08.prod.outlook.com (2603:10a6:150:14b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.31; Wed, 6 Nov 2024 11:46:38 +0000 Received: from DB5PEPF00014B9B.eurprd02.prod.outlook.com (2603:10a6:10:1db:cafe::8e) by DB9PR06CA0018.outlook.office365.com (2603:10a6:10:1db::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.18 via Frontend Transport; Wed, 6 Nov 2024 11:46:38 +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 DB5PEPF00014B9B.mail.protection.outlook.com (10.167.8.168) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:36 +0000 Received: ("Tessian outbound 57fa7becdebd:v490"); Wed, 06 Nov 2024 11:46:36 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6cdf92e8c1248003 X-TessianGatewayMetadata: zez+pj7vftJMvZjHdGdMB8rc9N7AP3V0qzROLHqvNHzM282ltC7rZLXw/E7oET9jkueB6vAzYUJ9fQiJ5p/cB5/Ve0+r50kN5U4gokuxlcKuzdO5bu/22AEWZje6dnkjMigugx0MQekP6cfzA6fMJTD3rGFwohuPp2Arx1rElzs= X-CR-MTA-TID: 64aa7808 Received: from Lf2d9fdda324c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F791B7E9-29E1-478A-96B0-8EE3AC9D3961.1; Wed, 06 Nov 2024 11:46:30 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Lf2d9fdda324c.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 06 Nov 2024 11:46:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sU0mqrXa8DfUmgZKfKULayQnQoSJ18sLbkw/V/amqPztNnG6yVQ4kkvrJyQGRGNpnWf2HneQBrwp6Cs4zfdPbHboKJ2vW3sqwduNvW7+9453rVKGtdAk2zt7NIjnYXBE+/1rgZNlQ4RdHrspQv4be4T+uhwYQYf6sFJysfBx9/FY/7e7k3RSZdAOLRyeeOo3CeJAEtJcWV3piYlc4Bfg8QiPD9GVAHDFW4qqp/vu3zSFhuhjZnq8tw0EbHmR/TYcAPThmJnKpRiHI5NjsGG5vR5BNrh6EVrHlImMkxC8ox8XtsY0xp7l7t/8/MIC4wNOVXC/soomZxGxXbsImxQgAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Clw+fYj0TPpu/VPc2TN+juMkYseL22NfL3JYUjaaDoo=; b=RsP1X/bByP14rPndTMGwmv+o7wArzEMJOJWYB089HQEd5g47oAIlu6BlUeJt7cHoOd50Gt/Fru77oCNpWIrcgSDLLnBaneOpvR8U8NKozOwKqG+AhWLjQwdJXMTVyAdd+EczG2IqmW59RXn7o0rjf1tiIaBUh8TBqMZ/RG4wBadulZ/r0qIcpjVBg7KIP8hdrT5EMKf93LbLYzPyiaaLONtJjjaE9+zaD1hQ113zV6xkcKnFiq/1zTWj3QcKY4P6GxOj/VENn0Use4AoaJH35eJQ6W/sdOCfOgNON4xfMHM+UBGCHqFa626cplZgM5Mbcvc4MTR6D2Z2QcOO3nN8qw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) 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=Clw+fYj0TPpu/VPc2TN+juMkYseL22NfL3JYUjaaDoo=; b=FKTYAwD5DDCzfyYNRjCjvLzSHWv8NxQ8ME+UOyl56gPh9tfJGwDa088iQ+OQMmvQy+ehmBplM1wzsXX1de/fpZBpwRLVXdAGkvLUsIrGf4RzbwumX8+s3T5ev2JypYzCP5D3LOVux6Wsr/ZzaNRp4VazGI9wOlVkNW3jBy+X0yE= Received: from DU7P191CA0004.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:54e::10) by AS4PR08MB7807.eurprd08.prod.outlook.com (2603:10a6:20b:51a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19; Wed, 6 Nov 2024 11:46:28 +0000 Received: from DU6PEPF0000952A.eurprd02.prod.outlook.com (2603:10a6:10:54e:cafe::8e) by DU7P191CA0004.outlook.office365.com (2603:10a6:10:54e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.19 via Frontend Transport; Wed, 6 Nov 2024 11:46:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DU6PEPF0000952A.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8137.17 via Frontend Transport; Wed, 6 Nov 2024 11:46:27 +0000 Received: from AZ-NEU-EXJ01.Arm.com (10.240.25.132) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:27 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EXJ01.Arm.com (10.240.25.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 6 Nov 2024 11:46:26 +0000 Received: from a078660.blr.arm.com (10.162.46.14) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 6 Nov 2024 11:46:24 +0000 From: Tejas Belagod <tejas.belagod@arm.com> To: <gcc-patches@gcc.gnu.org> CC: Tejas Belagod <tejas.belagod@arm.com>, <richard.sandiford@arm.com>, <josmyers@redhat.com>, <jason@redhat.com>, <polacek@redhat.com> Subject: [PATCH 05/10] c: Fix an assumption that vectors sizes are known at compile-time. Date: Wed, 6 Nov 2024 17:16:08 +0530 Message-ID: <20241106114613.2972987-6-tejas.belagod@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241106114613.2972987-1-tejas.belagod@arm.com> References: <20241106114613.2972987-1-tejas.belagod@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU6PEPF0000952A:EE_|AS4PR08MB7807:EE_|DB5PEPF00014B9B:EE_|GVXPR08MB10588:EE_ X-MS-Office365-Filtering-Correlation-Id: 40e84201-535b-43c2-a92c-08dcfe58ab5d x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info-Original: fLLkSKZIuRVli3pX47hKK8Iq+6TguESD+TkT5tAdLxEIlCCkcGxBiNRoC5F2vNFU6dX0GIyLEa6rmQ1J95s3hsJCSpUgq874XXBey1iOgQFtxnOao1tuVDAuj2Jzsh1FVLooHX6VO2Q3viYUqvk2Fo5M6y+9hHdQHzZNmqXp5J6FJC69IOR+tbCi8fdc3GcmfpAt/tkytuBr48Achl5dnDawwSqk/fpPQSbTFoHxBDpMAZuNjfhBz9Ja86RJiaYXG4KeZrAsNgVpxUBnYHUv+FLY7SKY8YNVhDHN9pmapgmzkSTwiK+NzdDnNpzkoeZqLvSwxXEJwUjectZqhzOxntrX/PJBG8PuvRVvNEBcXbfGdb+IC7ZsW0t9C4fbZlTGaCcf/4FesBcZL8PNtVaA7Q25DtW3Yi97hfmnEebXvPzO+CmkIaJRRvRIFyZy452F5j1o5Jv7KWRTSOuai3BNsd3eflmg45FRVmxXcax6C39rqdmOdPIR9i5izLQlW/3FoeSNgElp5zk9iwsxf+9xxuGiY8ZV075O0Bnigz2oyp/LxXPCeR1o/wnWu3rIzbYrXOXbMHzP5/ylBBJDZfv3/KGiZKy1D++yAIqFpPMZofifzvS3rHj+awg5vy6djteLoyd28w8DymnG3ZUI7vCcuwWId17Zyb/BIY1JZ3Lgy/WLtti4uiA5cbuZjDsTa8bhdLbW7pHyfw+kmxHC5j9Eb7LuKm8EDH5lmEswY5Qq5iguuV8rRNkUhnk50KXKvGFaDnUK+V5uX3xReOOH/MDhvM2nhhVFuStuy5/02FI7dSVaPQP5MZaK5iEWGfO8sdHlsZFq8v2muMISfmSQuAsHYKPa52T6NCSl33FZDX5NmrIJeVuwT1V3Hz+cflhY/31ZBx/u8NGvhEDllvKcV10ayV1+RVm2r890btqbkgT+cv9PVNv5VfeSIgUtQSVQMu4iTwPN0lpPW8WxnhpjBmEAxMydqpVl4rY7doee//u0dQlVsJjKbs7yglUQhYS7zaIR5kbW9AgjcqjaKX+kb0qkojp6QGss2ae1B6CglQxRTidiEFUpW5icAqrS0PEuMYd3sPCXrZ/y8OmMsAmL8M2e9dQXlu2hdakSrDSkInVLghRSskSgB/19k52aEqPSZp97E6Pf0gN+97tNOSxUd5LkxaIfDGjcF4gon8HETQFPpy3tApCddgHxqbKvooHac31AIRp7LYNpDx+Nf3aa9yrW71nbJXklWT0cjWxjlqAgzqe3loRFd+wjW5V6x+kZIkTOdJ7Erhr516Lv66Htn8n86eRmQQ7KpD8TrXK89S6ktr6acQoJHXrocVeU7rv8fc9Nw7pT+OzmU7CKVecJLKHh6hYYpP1kppDuhfIn9WflPO4uu3uBlHlqC24+p6FiutrjpZ298KgLThozmEXDtH1Wng== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(376014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7807 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:54e::10]; domain=DU7P191CA0004.EURP191.PROD.OUTLOOK.COM X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5PEPF00014B9B.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 662e42e6-7ac9-4e35-6ebb-08dcfe58a5fc X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026|35042699022|14060799003; X-Microsoft-Antispam-Message-Info: BWtYkQfNWL3SKUjz5iTPuvGY8pdUITlJcvEFwWBxKn7ZPj8uT78hIwJvx3l+03Qthz1zVbccR4MNR+JONC8RoFqmz0OplTQMYS6UT2yALCV0XTCDREIMQLyLJgvgzQuvNk1Vfqr8aaSGGe/htPIMGJMLSab82pIxJpDSRgAzEDLZoQ0nm97Cru8w0fmmzSGGAuPvttX8Y2NjsII/ZVWoBwxtK6K5D5F96GUCued/+ivvhAGl5MVgaTMZLSZsa+jEbcnigJF+eT11dM/LHZGTkFWuDCLjYbEm2q3qhEIg7PS+eYgcPLJeGnILPpSqEcQ1JBzMGhln8850TZKpIXCdYZ6SCdG5c7IRCTbp/5gTrHeHNT4noCFargX7CAW1ZFG9u3FryIlrfnk8EayLJIWnV0B8gCEDQxsxT50DI4mL1EaEMCStl7TVq8j9ZcCDmgjQsvmYOM2I2MBL6OLciyKX8b1JRFknDXGkHnSQr0GvyWSaBZvULmZpUyL3cNnbfzfbyIMPNv+31n7ZBL24GqblpTo++WxlJoULdAnBnGKxUcDDGYPE5kDOTk6skcgNbatK9BUtAYrKAj5K/gxpVqf3B76ELmag70sGAlv4gTnYKjM4KJ313oT5brfIX2og5DVxPo5VL42C8W4guh4qjOtrmj5NHHDWdKhBcm+28aFwKLYcIZ+2d5az7hYdsDJxJervjVaWNFC2Usxg2O+MLjvXwYr1hIgBJDaPHqRPfhPBwLOs2sWvOS7KncWSYbJ3OugVAXZMuV8BtjuHMsrgqfEg1sTEoqkbxKIHRKe00dRFjGOU5uy1FIUVFYXLfZg0HxeFFHNPpg/YlLQxYF9lsAfa2Xkc+4z1rzs9fbH2w2eB36qVrydT+bBejM0GJ8Eg9RkHBltu8BbgMDUHBoZXKD+4Fwh1VkAbex+II+Mzm3RRq+6mP4XrjL7olTSYr+i7wt/6Of3ACAf9gb2YhUgKgfxWmSGzoadgPWtGkFxGQ1fomX4mondr6hR/DQbFFNbczcfkn9XhXQa6RQ/RqA2Q4CI4aMMIMNrs7EoyB9C4XNRIXKRCR4MN9+2k1SBLdVCXqMvlt5NW0l5kVgwXba8rvmDhTza7/E3rUcM4vxiaseOGDF4AlQmpPQGHv7KtGgqeCo19ieMAEdLBv52eiIrJ9aofaB5Es65niDAYOQyOjPWECrM7jcJRP8HUsDGvjQHaoXUDQLfovsgqWc0A9Fbb3SYah7RhZEOot8kWwsPFHTXBeyDhp56sgFSGILcxJ5SZBlOIQ2fjEqKjh6Uj1QrL1nYaIOkluWGx544H3WaZ59kJhOjF3FOTtJQNHuc8rndhDS1eUlZn+9fw2GYwyBRmg3YAP5t+in/NtqJiL/cQ8ZFLAa6ZAC7D2lSSafix6cs5w6a0mCtzeErBp8NGLkt5dSOIHQ== 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:(13230040)(36860700013)(376014)(1800799024)(82310400026)(35042699022)(14060799003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2024 11:46:36.5387 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40e84201-535b-43c2-a92c-08dcfe58ab5d 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: DB5PEPF00014B9B.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB10588 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
aarch64: Enable C/C++ operations on SVE ACLE types.
|
expand
|
Tejas Belagod <tejas.belagod@arm.com> writes: > There is an assumption in many places in c-typeck.cc that GNU vectors sizes are > always known at compile time. SVE vectors now piggy-back on GNU vector code > so this patch changes one of the places where there is an assumption of vectors > being fixed-length to being variable width. > > gcc/ChangeLog: > > * c/c-typeck.cc (process_init_element): Fix condition to include > sizeless types. > --- > gcc/c/c-typeck.cc | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc > index 6673cbf7294..94959f7b8ad 100644 > --- a/gcc/c/c-typeck.cc > +++ b/gcc/c/c-typeck.cc > @@ -11969,8 +11969,9 @@ retry: > tree elttype = TYPE_MAIN_VARIANT (TREE_TYPE (constructor_type)); > > /* Do a basic check of initializer size. Note that vectors > - always have a fixed size derived from their type. */ > - if (tree_int_cst_lt (constructor_max_index, constructor_index)) > + may not always have a fixed size derived from their type. */ > + if (known_lt (tree_to_poly_uint64 (constructor_max_index), > + tree_to_poly_uint64 (constructor_index))) > { > pedwarn_init (loc, 0, > "excess elements in vector initializer"); Others might disagree, but FWIW: I think it would make sense to fold this into patch 9. The end result there looks good to me, but this intermediate state looks surprising. Thanks, Richard
diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc index 6673cbf7294..94959f7b8ad 100644 --- a/gcc/c/c-typeck.cc +++ b/gcc/c/c-typeck.cc @@ -11969,8 +11969,9 @@ retry: tree elttype = TYPE_MAIN_VARIANT (TREE_TYPE (constructor_type)); /* Do a basic check of initializer size. Note that vectors - always have a fixed size derived from their type. */ - if (tree_int_cst_lt (constructor_max_index, constructor_index)) + may not always have a fixed size derived from their type. */ + if (known_lt (tree_to_poly_uint64 (constructor_max_index), + tree_to_poly_uint64 (constructor_index))) { pedwarn_init (loc, 0, "excess elements in vector initializer");