Message ID | 20241129035404.3363162-5-tejas.belagod@arm.com |
---|---|
State | Committed |
Commit | 4f593db8803cc8df796314ca9e15a72c51d6bde9 |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1FDB23858D37 for <patchwork@sourceware.org>; Fri, 29 Nov 2024 04:02:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FDB23858D37 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KkmXnp8E; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=KkmXnp8E X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on20607.outbound.protection.outlook.com [IPv6:2a01:111:f403:2606::607]) by sourceware.org (Postfix) with ESMTPS id 0F0443858C53 for <gcc-patches@gcc.gnu.org>; Fri, 29 Nov 2024 03:54:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F0443858C53 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 0F0443858C53 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2606::607 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732852475; cv=pass; b=sBRrevlY2I5eaWWUOBSbYazVftKAA5VuiOSCDtyag8Q4us/CzXCnNEqvVZ6vB4JGb0JHLT160PJTnNtMcNalXvyksQW53aQOVNbPCbbIXp8BewU/FT/F6tFDEVvI4TZc5s/qyMpLHSOBqfXB64gjKVwY8Eo2YSAdOaAeYS06xY0= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732852475; c=relaxed/simple; bh=7cFT/65d7CwNifOn1141CBZC+xLGQLhJ0vTFaDLJXUk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Ao0KqbVKx9YFaVVRlOgXf3PSAeQHUlcJkK4Th2ik4wL8DZbqt3oLMGzaf1WKc0tZqDjlSmlgEZM8ZbSkhg+O8n54S64Ppt0yShM3o23xCkjGVZYLWMKUE63xPSQ7J2Fs382gGqCN+tzTk1eIwK6XRbnETI1p1KD3RtVFqbDlHgA= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F0443858C53 ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=yC39HFyIpfxD34XVqRk/S/QrFih9+wIzqjV4mlwhxuBz6uhPwxMVFfeEmZtqOqoo3vHzNI8Op+iv3bLJe8ZjE+2aRWgm55YMmTK2/V6zHWVZY8DxXAXYDoD1OLSpSzSJZNEXNtPK2h/CZMuu7wsdcziU7eFlYGWzV2aYNpvwKurXX2p+xvupFSxZ5L4Qe6PoF7rND1wau4gBBvtdt7AId7PyZ0OJ3tqi8vMaybL+dUFDlhQyMsh+0tuWer85gkrNUPSNTYS7m9s6epCsEQEuC9YfZ0vHP1mBU709oW4pPhnH2OTyj8ZyzsrVfoYLmtqFcTOV04Who9FX+bZybZ1YPQ== 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=L1UcvjiB2ZF3pgvSDm5Sc2f5olIOiTh8LPXJHIpA2Uo=; b=O/+rawqXTsibecmwyy8UKGM1DBUOwIiPRVhm/yr8mpUHiAha2Q6LDSgXdt9s5GQqpU7PjZFEodgoV4ZF75Ya3FItEgOq2kZyORbhauwnDFUXIARCLv9+SnCmZK7FbSs1XdJehQ7KjfSDTg9aVfTes0PxXYCFIFh42hrQQsYgb7pwpIn/CEOQ56desHRUv0WLECRIiGh06Vi4qya5+Jx+p+QsqZ3+IVVu2zKw9mEJiuI17xNLCRtLjey2Paps/+3dkoO32oBklgOt66K9vgPFRIy9aSrs1QQekcRCcv00kfxNnHecCNj5MPfUPPbCQM8LXly9Hr+2afR3pQi6mgAhbg== 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=L1UcvjiB2ZF3pgvSDm5Sc2f5olIOiTh8LPXJHIpA2Uo=; b=KkmXnp8Eg/6LFcJGRysP2ReAukjikg9Y01WiKzGD93p1ODZAbyGAs+ZFLmz5NClHG9VFS7hVTVkMFvHvyUxq6WP0JvzA57YHBFYqNr4XFRzwCg0AtlhTylEQKuAWNbpyvXKGV91lUtjNJ0vZdRkeGoWf/yZSzZj7/Icx9ICRMq0= Received: from AS9PR01CA0017.eurprd01.prod.exchangelabs.com (2603:10a6:20b:540::18) by AS8PR08MB10003.eurprd08.prod.outlook.com (2603:10a6:20b:63a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.13; Fri, 29 Nov 2024 03:54:29 +0000 Received: from AM3PEPF00009B9D.eurprd04.prod.outlook.com (2603:10a6:20b:540:cafe::2c) by AS9PR01CA0017.outlook.office365.com (2603:10a6:20b:540::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.14 via Frontend Transport; Fri, 29 Nov 2024 03:54:29 +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 AM3PEPF00009B9D.mail.protection.outlook.com (10.167.16.22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.12 via Frontend Transport; Fri, 29 Nov 2024 03:54:28 +0000 Received: ("Tessian outbound 033f0ff3ba29:v514"); Fri, 29 Nov 2024 03:54:28 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2ff448a1fe19aa8a X-TessianGatewayMetadata: Izcz0ZFnEReaT4XCWp4IC+f0LCRbykCzeufSIAUV8jxnVUjfd4QKpe+aMrTtrt4HQXI33ZGBHMD6AjTcsgphvrv3X17iTQVLA/rrPrSnlpypivUhOmc/2bagIU7Y9FIQfaywyvLG/juhH6pON5u9btrET77U9uoNCOY1td8BH1Y= X-CR-MTA-TID: 64aa7808 Received: from Lb52e95e39123.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 16B3A993-CC7D-4DC1-99A2-77B7530E9D3D.1; Fri, 29 Nov 2024 03:54:22 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Lb52e95e39123.1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 29 Nov 2024 03:54:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Dif4CE+eKIh0OIiJV7nV6bfbpnfPxg0cMb8yYopMHZs97bUvV4o7fLEgMIn4PrpTyvjmN0uLFXZPnX4dzA6hHxh0XXuQircEHye3HHWzPaLF0lAgHgx2E1xtZ0eSQ3yOVUD4G8G9XA2mtt4o5N0rUcnl5NX/ELMwkXozzK9rf5L/1ge3j9Cq+Zn02tSSIcQBTNeRgSioBV45X2cetfhkeDfgFsfdjXZKdU45S9lx+wIy+P2Ze6mYBJWO33Nr5lvZhWrLVcPkyRhj5HRqyzqJYOcgnRPa0Jxps2K0JEdx1iGPBVPL0DlvteDyiQY12140lFa417D9tQxEF/hapfZW0Q== 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=L1UcvjiB2ZF3pgvSDm5Sc2f5olIOiTh8LPXJHIpA2Uo=; b=oKEcoF7TDY1HZEDAU7Dk5FxB6zId8sgfxoB1NT6PWQleVhI7O/Haiay0bAxDmCbJpqZ8IEPlrB8HiExyzTHHIgsoqJnWqTn8CEKKc/SLo17biFKl9A3ruOvRyPq6YJsrkYJSIsXJKNCyu4L9bHmu7WpHzUw4GuyVa+9ZQqAbZO7B9QV8EeIJjLAQ5Xsm0etcfS8CPjY5dDEA3UvYNMFQMT4fmrt26QsH9x5a4dFv8Xk0DwxKyQoIXgVlQE+ewnfB3F3bVW58pJS0W0clO1QiJBU0DS05e121eEpk1TbrGSEpO24DOJ/AC8cUuC+6irtAS+SUnCWwej1LrKiNyu+NuQ== 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=L1UcvjiB2ZF3pgvSDm5Sc2f5olIOiTh8LPXJHIpA2Uo=; b=KkmXnp8Eg/6LFcJGRysP2ReAukjikg9Y01WiKzGD93p1ODZAbyGAs+ZFLmz5NClHG9VFS7hVTVkMFvHvyUxq6WP0JvzA57YHBFYqNr4XFRzwCg0AtlhTylEQKuAWNbpyvXKGV91lUtjNJ0vZdRkeGoWf/yZSzZj7/Icx9ICRMq0= Received: from AS9PR05CA0287.eurprd05.prod.outlook.com (2603:10a6:20b:492::26) by GVXPR08MB11156.eurprd08.prod.outlook.com (2603:10a6:150:1fd::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.15; Fri, 29 Nov 2024 03:54:17 +0000 Received: from AM4PEPF00027A5D.eurprd04.prod.outlook.com (2603:10a6:20b:492:cafe::d2) by AS9PR05CA0287.outlook.office365.com (2603:10a6:20b:492::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.14 via Frontend Transport; Fri, 29 Nov 2024 03:54:17 +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 AM4PEPF00027A5D.mail.protection.outlook.com (10.167.16.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8207.12 via Frontend Transport; Fri, 29 Nov 2024 03:54:16 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 29 Nov 2024 03:54:16 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 29 Nov 2024 03:54:15 +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; Fri, 29 Nov 2024 03:54:13 +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>, <rguenther@suse.de>, <josmyers@redhat.com>, <jason@redhat.com>, <polacek@redhat.com> Subject: [PATCH v3 4/8] gimple: Handle variable-sized vectors in BIT_FIELD_REF Date: Fri, 29 Nov 2024 09:24:00 +0530 Message-ID: <20241129035404.3363162-5-tejas.belagod@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241129035404.3363162-1-tejas.belagod@arm.com> References: <20241129035404.3363162-1-tejas.belagod@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM4PEPF00027A5D:EE_|GVXPR08MB11156:EE_|AM3PEPF00009B9D:EE_|AS8PR08MB10003:EE_ X-MS-Office365-Filtering-Correlation-Id: f794edf5-166a-4d75-66de-08dd10298629 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|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jkdzyk5dFjul9hTUAYIon2R0QDxgwTt7kXUqVR8viUwgn7+aj8vjX2y3sS3Jej+qcWJ6b3Is/4RhvYBlcSg/7pZXUL45I8j8yRIBuk0K9KCFLa3Bwp7tOSujyR8KDJK8VAjaKS6+qmqJ25FpxNJqUYbHIX0KSkR0A31cLLJFLjKE8MPvnJntMS6KuSibupKMYmfYTqWNRcvvL2CkRrwtU/B3Bo2AQR+nJjokqTyPvdsEZ8YcRYr0D5bYAzejoKc+mmI8WuJjPHMvWKX6su3df7fRdiuagVgpnMSW3XzLZPtEqnnBeB0NQnHL//rfXaY3nxcMWWrkcTI/GBHzTvskisc/L2yyOIpCmAPKjAyMrS1daWDip3ho6nfb5ja1Mbctia1cMnccxcgnDF/KbEN/ynXw0aCU7UiCLO3zI40NIb3FjGUNr 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)(1800799024)(82310400026)(36860700013)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR08MB11156 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:492::26]; domain=AS9PR05CA0287.eurprd05.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF00009B9D.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 99391f96-1131-4e00-e62e-08dd10297f13 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|35042699022|1800799024|14060799003|36860700013|376014; X-Microsoft-Antispam-Message-Info: ziP8e2O90nQrVNC6EfgU44KunRtrHaXcMlAzDLGm8w89/ZVDa/EKZJMt82ZFoNRGVo8vJgPiwuwoXTXLO7F4Y06vWIKfle1tLdpOJRcpHkySLNQ+g2+rwKcajF6qH0Um4JDxHejtaH/x27r1vI+Z6Nrchyfh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GJJbnHLByvpHZhBJgmdkbvG560IaHBRlgGzZ2MNRh/W9QvrlRCvFHuVSy0BniCJWD8tKZpq3o4OKToXFUYrhrSr5fflqkUg7EK23UpTsG7ubHwWO0ZDqKYE1RQebfcdiGTwvSZLdhcU67dJDShQIR03Fn2cwOXZiIU/vXHGNBDQEoAxxz6DW6enz/UzkytjI933w9t1gMU47HK7bJsjWG5nlps6Eie8idRaijvS 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:64aa7808-outbound-1.mta.getcheckrecipient.com; CAT:NONE; SFS:(13230040)(82310400026)(35042699022)(1800799024)(14060799003)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2024 03:54:28.6417 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f794edf5-166a-4d75-66de-08dd10298629 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: AM3PEPF00009B9D.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10003 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, 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 <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~patchwork=sourceware.org@gcc.gnu.org |
Series |
aarch64: Enable C/C++ operations on SVE ACLE types.
|
|
Commit Message
Tejas Belagod
Nov. 29, 2024, 3:54 a.m. UTC
Handle variable-sized vectors for BIT_FIELD_REF canonicalization. gcc/ChangeLog: * gimple-fold.cc (maybe_canonicalize_mem_ref_addr): Handle variable sized vector types in BIT_FIELD_REF canonicalization. * tree-cfg.cc (verify_types_in_gimple_reference): Change object-size- checking for BIT_FIELD_REF to error offsets that are known_gt to be outside object-size. Out-of-range offsets can happen in the case of indices that reference VLA SVE vector elements that may be outside the minimum vector size range and therefore maybe_gt is not appropirate here. --- gcc/gimple-fold.cc | 2 +- gcc/tree-cfg.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc index 5eedad54ced..4ad5ae03d91 100644 --- a/gcc/gimple-fold.cc +++ b/gcc/gimple-fold.cc @@ -6293,7 +6293,7 @@ maybe_canonicalize_mem_ref_addr (tree *t, bool is_debug = false) (TYPE_SIZE (TREE_TYPE (*t)))); widest_int ext = wi::add (idx, wi::to_widest (TYPE_SIZE (TREE_TYPE (*t)))); - if (wi::les_p (ext, wi::to_widest (TYPE_SIZE (vtype)))) + if (maybe_le (ext, wi::to_poly_widest (TYPE_SIZE (vtype)))) { *t = build3_loc (EXPR_LOCATION (*t), BIT_FIELD_REF, TREE_TYPE (*t), diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc index 9ac8304e676..87f9776c417 100644 --- a/gcc/tree-cfg.cc +++ b/gcc/tree-cfg.cc @@ -3175,7 +3175,7 @@ verify_types_in_gimple_reference (tree expr, bool require_lvalue) return true; } if (!AGGREGATE_TYPE_P (TREE_TYPE (op)) - && maybe_gt (size + bitpos, + && known_gt (size + bitpos, tree_to_poly_uint64 (TYPE_SIZE (TREE_TYPE (op))))) { error ("position plus size exceeds size of referenced object in "