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: 186381 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp103498dyi; Tue, 9 Jan 2024 05:24:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtxmjyOhFIb1fyptHjw4VELeU3p+/+Hx/kBKv/bmPg0pRz43Z9XQgk4P5rPuBoGmohEfJ6 X-Received: by 2002:ac8:7d14:0:b0:429:9d81:cd58 with SMTP id g20-20020ac87d14000000b004299d81cd58mr957340qtb.22.1704806669933; Tue, 09 Jan 2024 05:24:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704806669; cv=pass; d=google.com; s=arc-20160816; b=snbwMKNXN73CqKHameJ7QJaqGOd562RHUeehERHsCMdKIwktNWFuR4W7PkVNnJG0jP nn6nCwdIlzRVXv0ZMPok2uUwwPdKyC0PDJK/6myBL2egyYqslq7h2ZiQX6JimJLiS0k2 EFOR5WZqS5mXqcRMwi4KAQxHA7WIWED2c/D3c6a12jC7RWJ8H+QR+eexrxJ3KmLxoKhg iXa/GDaCoR+GkqH7i+U/MZj5Y6Hq8ZOanR2trsLhlhbrEtOder7cLuvkT6bKIr1qIOwl YK6GnYcEqJzPhu7juKlFvStQdNd0HgbOuBSAo+dmDSDEIpN2taKq4vQ0ptFjNjTOa6qh lLtg== ARC-Message-Signature: i=2; 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:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=EOen1uceI2WYBApDL7O3GFQToPtZPSm+eWGp5ld99Wc=; fh=hOhsC1930eHatDPYd2EALQ9Ry/g++vvN4vxlQkRuX+0=; b=h7GhhTc9ZWdEbtM6QsdThA/GP7JflKCSbTTjNHWNCTyvLXwJfdh9HAt5Jcy7AI2lLM WRqpKXxTwXCKMbSBfO/fwBdymS3AMhfNIdnPdJvdGuf3daC7sgaahUmmPeSpJri1hpF9 +GEFoMS12IH8YaN8WeTX+haTMhdIXz/xZvWdg+vJAyQKXnVbJghc73jHcXEZS6gEPy2g D032K3RhGyxl3ouyv/ZVsUZUYcZPunnaG7GgZ4e8CVbWFHNsMIugJaMLbmVnys1CUsdH sDJiFPymxoKfYJn/MTb7EGM+YP5OZCDufwghTKkMcNDqxbEkwK44MCVj8pioubCvh25f JDoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=KYAemAXt; arc=pass (i=1); 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a9-20020ac85b89000000b004299e619901si2120170qta.705.2024.01.09.05.24.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:24:29 -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=@adacore.com header.s=google header.b=KYAemAXt; arc=pass (i=1); 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DD6E5384CB8D for ; Tue, 9 Jan 2024 13:24:20 +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-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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787619358797786032 X-GMAIL-MSGID: 1787619358797786032 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,