[COMMITTED,09/31] ada: Elide the copy for bit-packed aggregates in (safe) assignments
Message ID | 20250107125350.619654-9-poulhies@adacore.com |
---|---|
State | New |
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 9DD6F385481C for <patchwork@sourceware.org>; Tue, 7 Jan 2025 13:07:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id F2C4B3856253 for <gcc-patches@gcc.gnu.org>; Tue, 7 Jan 2025 12:54:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F2C4B3856253 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F2C4B3856253 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736254456; cv=none; b=lpmMqsRGtt8PhVJfAsKNVJe6Ukh0v5WsWhNTdlhqC7KpNiyX/1OQALzJN6MRBLeALErkqvExPkK2smh1rG+SPmxrGCr9KZY5HxqzMw4gWzEDy6wBknKrUhiVj9epb3qiGZOi8Xuk5rAW7ZvlbP8Zec9n2vjUoAn3z7EBMu6ANHo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736254456; c=relaxed/simple; bh=sg5yzW68mJG060S49wuNavvQYjsg0Zs4yJPKtt2r/tg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NOvVjI9fQixA3VWpPETQ587ZxydpcUoJX4TMfbK065gfvaPqguHDvYcjpfUgamkCZvEruQbLcAZYv4n4vfHw27YizhSKDGonoTEduWJjUFuKgZcZ+m/F/ry3DSDViFnzhSEO+/3ssEU/wZJcO4fmEJv0ZWQ27/tjFgBrkoc26pc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2C4B3856253 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=CIbENnbR Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4361dc6322fso103277845e9.3 for <gcc-patches@gcc.gnu.org>; Tue, 07 Jan 2025 04:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1736254454; x=1736859254; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NJ+CVr7iFnRrgmTSw0G/Dp7yfbG3r0OF7Y5PyXdmXeY=; b=CIbENnbRx+LPdWpPcWl9xeqaURw8V0jK4Y0D9eJ+p0MBpKDgjExSDlFJvu1GnDd1FG CDVQ/dxrMZxYzgcpvQdQeHs7jChCZFJVTkVXdMpYgIWsI5BcFx5+sjhzAovBeCd3ME0Y u9Rp038rOkO57SeIvJa16+a3Wqvx2oadiJb8drW4cpLDULHtxDHpBJZOLDP4LQbfwzie X+piuy+sZrHu08KNo43acQu+yRmTDacLIKIOukrcJ6//Ut41MkzLjIx5+2BiZ9Xse5TD 5lxKMXNJT9oypH0vZz7BD8cY3dpyR6UC6XTHJRf5fMnUdNIlnuZHj4hH9+WnMo9F9+ZP dELg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736254454; x=1736859254; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date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1f17b1804b1-436685488b2mr480301455e9.2.1736254454630; Tue, 07 Jan 2025 04:54:14 -0800 (PST) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43656af6c42sm631014805e9.9.2025.01.07.04.54.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 04:54:14 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou <ebotcazou@adacore.com> Subject: [COMMITTED 09/31] ada: Elide the copy for bit-packed aggregates in (safe) assignments Date: Tue, 7 Jan 2025 13:53:27 +0100 Message-ID: <20250107125350.619654-9-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250107125350.619654-1-poulhies@adacore.com> References: <20250107125350.619654-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 |
[COMMITTED,01/31] ada: Restrict previous change made to expansion of allocators
|
|
Commit Message
Marc Poulhiès
Jan. 7, 2025, 12:53 p.m. UTC
From: Eric Botcazou <ebotcazou@adacore.com>
The in-place expansion has been historically disabled for them, but there
does not seem to be any good reason left for this.
gcc/ada/ChangeLog:
* exp_aggr.adb (Expand_Array_Aggregate): Do not exclude aggregates
of bit-packed array types in assignments from in-place expansion.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/exp_aggr.adb | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/ada/exp_aggr.adb b/gcc/ada/exp_aggr.adb index f771660d23a..a51e02bc308 100644 --- a/gcc/ada/exp_aggr.adb +++ b/gcc/ada/exp_aggr.adb @@ -6129,7 +6129,6 @@ package body Exp_Aggr is Nkind (Parent_Node) = N_Assignment_Statement and then (Is_Limited_Type (Typ) or else (not Has_Default_Init_Comps (N) - and then not Is_Bit_Packed_Array (Typ) and then In_Place_Assign_OK (N, Get_Base_Object (Name (Parent_Node)))));