From patchwork Tue Jan 9 13:15:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 1884463 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=KYAemAXt; 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 4T8Wq027w7z1yPf for ; Wed, 10 Jan 2024 00:23:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 400E2384F4B7 for ; Tue, 9 Jan 2024 13:23:54 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 785BA3860769 for ; Tue, 9 Jan 2024 13:15:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 785BA3860769 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 785BA3860769 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::432 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704806157; cv=none; b=B2FctqUxNJozpikWUYHamFLqy9+lBwL1wO0s5BHuOFDbgqeOw/sWV/fPmayTUyRK5mTbnyu+l5pMIlfFwKdMAu7CQ7RF8PHj2M9lm7H5lXCBs4lYvA0Cn7SdTAF7Ih9h+cIuGy0YufkQp6l5d7O52ecNCWot2sNC6mXyfVi/6do= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704806157; c=relaxed/simple; bh=7dX/iEh2pDJYFY62+UCkFeA+8ekmpn8B42c+fnqJAFg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=yBJAq7iAlzXV7Qx1zcucdY1ibxJW/zv74JT1wfkYQR9CYa36/+uwFRJsKq71gjukaBy8/zwVS5FrkaCl2xvuYhkCQXP0Ecba51czVWr+f9xZlZ90CVR9XtrpH9nW2Zfon4gkAPonQPZs4cUfmX/IKzN93Y77lsVIu/mD3I+m6eo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3373bc6d625so2826020f8f.3 for ; Tue, 09 Jan 2024 05:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1704806154; x=1705410954; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EOen1uceI2WYBApDL7O3GFQToPtZPSm+eWGp5ld99Wc=; b=KYAemAXtwvedjSJIkShuFC1BDEfK18j/L4nW+D3NbPI2S2xD3tTo8IJe5dpNMSpLK3 QmVGOYBz5ceNJCZ2l7LAFezLKY8cz4dRKRCCJYeeOeuyS2Bh46HqrvN6XMR9NjvH57Xx SiDRFL0I/Do5qJTdJR4Kw/JjihRoEWBkSCI3hZo+dXQLphUG0LjAhAYS3UQMB7fqTcBD aJ0XPxBN5r5vK3Wvydw/EcPYa4x3CqZwmafNfTTfw4Yc2WAhQKnrAef+YSQKW/cscaoA 05Y2D3qEFizozItgFqsk2WbWtuW3aNcLpISSFjzYuO5MFvrLKjUsrHEziBys5gOPWWbY 0Iiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704806154; x=1705410954; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EOen1uceI2WYBApDL7O3GFQToPtZPSm+eWGp5ld99Wc=; b=pdqKC6JzRniMlAISgHZfUPIqnr/Czkm2ODLEy107y/WQ2uFtCY6lkvcCRAF5BInx72 bsxcwc4tRMqvJLrhE3Cb8sE4IEEm3WhaMKv7ko0lIX0lp7cVbY35ckpSZCGget3B3o69 F+uPnKPJ0bYnw0yyKbQpp+KCynv9xXEtNEK6c4y/oMLZSVqN+0COL2YMDgvakHMMYtgq kPDOrM6W8il1rIBhWnl+zpzgBYgnIhWhX8jBlutV/QlRZiDsTnZ6uBFvkYnXWPg77SVE jySIw48cYkA8h4huynWkNHwmH5TIBXnYoSSvKfkuD27U1zJjcNTuNU/Ef34iQdL7/dkX eXNw== X-Gm-Message-State: AOJu0YxItSrDG61L5tV2F4UPDP+1GXAFxizhWVDahXxUIpi8YaPpxJGL MJsjihiVn1xwSuYwbGOQgiVHEdzXUOR0N/FhYIepT4jGnQ== X-Google-Smtp-Source: AGHT+IHTLyO30le9Lgf8G7VD39ZZ17xZpHBQUABBhfb4DQ9BYp005cxX4WGBZJ9Ky/bIk9n8cQGi3A== X-Received: by 2002:a1c:7c15:0:b0:40d:5e0e:8648 with SMTP id x21-20020a1c7c15000000b0040d5e0e8648mr2825252wmc.159.1704806154288; Tue, 09 Jan 2024 05:15:54 -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 p15-20020a05600c358f00b0040d90407f7esm14840759wmq.8.2024.01.09.05.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:15:53 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [COMMITTED] ada: Remove unused runtime entity Date: Tue, 9 Jan 2024 14:15:53 +0100 Message-ID: <20240109131553.744686-1-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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, T_SCC_BODY_TEXT_LINE 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 From: Eric Botcazou The compiler has not generated direct attachments for a long time. gcc/ada/ * rtsfind.ads (RE_Id): Remove RE_Attach. (RE_Unit_Table): Likewise. * libgnat/s-finmas.ads (Attach): Delete. * libgnat/s-finmas.adb (Attach): Likewise. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnat/s-finmas.adb | 14 -------------- gcc/ada/libgnat/s-finmas.ads | 4 ---- gcc/ada/rtsfind.ads | 2 -- 3 files changed, 20 deletions(-) diff --git a/gcc/ada/libgnat/s-finmas.adb b/gcc/ada/libgnat/s-finmas.adb index 30927a4fb21..a231b6bd874 100644 --- a/gcc/ada/libgnat/s-finmas.adb +++ b/gcc/ada/libgnat/s-finmas.adb @@ -70,20 +70,6 @@ package body System.Finalization_Masters is return System.Storage_Elements."+" (Addr, Offset); end Add_Offset_To_Address; - ------------ - -- Attach -- - ------------ - - procedure Attach (N : not null FM_Node_Ptr; L : not null FM_Node_Ptr) is - begin - Lock_Task.all; - Attach_Unprotected (N, L); - Unlock_Task.all; - - -- Note: No need to unlock in case of an exception because the above - -- code can never raise one. - end Attach; - ------------------------ -- Attach_Unprotected -- ------------------------ diff --git a/gcc/ada/libgnat/s-finmas.ads b/gcc/ada/libgnat/s-finmas.ads index 45faf45b02e..404b67171c2 100644 --- a/gcc/ada/libgnat/s-finmas.ads +++ b/gcc/ada/libgnat/s-finmas.ads @@ -71,10 +71,6 @@ package System.Finalization_Masters is type Finalization_Master_Ptr is access all Finalization_Master; for Finalization_Master_Ptr'Storage_Size use 0; - procedure Attach (N : not null FM_Node_Ptr; L : not null FM_Node_Ptr); - -- Compiler interface, do not call from within the run-time. Prepend a - -- node to a specific finalization master. - procedure Attach_Unprotected (N : not null FM_Node_Ptr; L : not null FM_Node_Ptr); diff --git a/gcc/ada/rtsfind.ads b/gcc/ada/rtsfind.ads index 669f6df79cb..33e8472ae06 100644 --- a/gcc/ada/rtsfind.ads +++ b/gcc/ada/rtsfind.ads @@ -918,7 +918,6 @@ package Rtsfind is RE_Attr_Long_Long_Float, -- System.Fat_LLF RE_Add_Offset_To_Address, -- System.Finalization_Masters - RE_Attach, -- System.Finalization_Masters RE_Base_Pool, -- System.Finalization_Masters RE_Finalization_Master, -- System.Finalization_Masters RE_Finalization_Master_Ptr, -- System.Finalization_Masters @@ -2563,7 +2562,6 @@ package Rtsfind is RE_Attr_Long_Long_Float => System_Fat_LLF, RE_Add_Offset_To_Address => System_Finalization_Masters, - RE_Attach => System_Finalization_Masters, RE_Base_Pool => System_Finalization_Masters, RE_Finalization_Master => System_Finalization_Masters, RE_Finalization_Master_Ptr => System_Finalization_Masters,