From patchwork Wed Jul 7 16:24:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Marie de Rodat X-Patchwork-Id: 1501876 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=adacore-com.20150623.gappssmtp.com header.i=@adacore-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=qB7nFZaC; dkim-atps=neutral Received: from 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GKlJF293Rz9sWc for ; Thu, 8 Jul 2021 02:29:49 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D4564396DC28 for ; Wed, 7 Jul 2021 16:29:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id EA1E4395BC4F for ; Wed, 7 Jul 2021 16:24:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA1E4395BC4F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-lf1-x134.google.com with SMTP id n14so5230319lfu.8 for ; Wed, 07 Jul 2021 09:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=HRdyn1DAoPqqska/c01WPows3L0CHFtiT2Jd5+hIAXM=; b=qB7nFZaCDMdfxTuC43IY7S4Z0lOf9fR3vVEzcqZfgWlsQn01eU9LmcIM5/E0OP2HLR gt3e5gVigie2zeDvyucf40AHKyvY1JLoRh9nFqM6DmLsXJE55NnBo4tyLavEogP3hTTB g3Ytjvtd/u/cWlgJy3Vp6uXlRFiJh8uGyV7Hai8YjmziEb4Eyvkh9WJV/EJKN6rSk75x C/0f98TAR3GR6POJiYtGlpXR6MFiVJJrRzbNxBsSiVxaW5rJ+XnkGgzoeRTnWIejyFGW EJ/XAtaMstXmy3Iha9OxJ9clk08yXcGy2hOp29uOkc8B6uoNbh615zNWIRINx6l02bh9 fFzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=HRdyn1DAoPqqska/c01WPows3L0CHFtiT2Jd5+hIAXM=; b=TgPUWEVnTL9Ts71b4UJWWE1xXn08klePTWpECuNCM5hvyB8+WCFSHUXvT+QrFKXWIX CZOUrQacBBOOJ70UDLEtejCHAuQwAzEYLEwGM5fmjpyyBj948uLqlQqV/U9i8tqZLSfv fNglWudCsieuLPgdpYKZXEZzJfZ6oFwYJnEuQBXw2U/cKZlFY46Nd3v4g8QDpZtMIfdb v2juWmXFXL/x7oVbLt5+Zjd5p8ePP8bZeLTjHnab8k9+IvfssppJAtGejaPRcsHv3GVk YehR4TuZe9r/CAoYoqvP7WgubFtjg7386DSf4bNRIoNYwlYTic49PX6eDcDiiJ6R9Nlv vXcA== X-Gm-Message-State: AOAM533uLmxdWrgXnD9zOwK7O/yKOFUnaO5oA8/C7+Ou16HhgJZ/MPZM /iAVf7R2ws7TNQfMM2DT2ij5YQ++RnqV3g== X-Google-Smtp-Source: ABdhPJxDAx4fiEK1P4QE4ZxUdcYXwdj7Yr1edF/7/+s9szd+vWIEqZu6HgMdTaNjahFuVy0ShfiENQ== X-Received: by 2002:a19:484b:: with SMTP id v72mr17994695lfa.118.1625675096743; Wed, 07 Jul 2021 09:24:56 -0700 (PDT) Received: from adacore.com ([2a02:2ab8:224:2ce:72b5:e8ff:feef:ee60]) by smtp.gmail.com with ESMTPSA id g12sm31458ljj.94.2021.07.07.09.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 09:24:55 -0700 (PDT) Date: Wed, 7 Jul 2021 16:24:54 +0000 From: Pierre-Marie de Rodat To: gcc-patches@gcc.gnu.org Subject: [Ada] Linker_Section_Pragma cleanup Message-ID: <20210707162454.GA2542898@adacore.com> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bob Duff Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Remove Linker_Section_Pragma field from Record_Field_Kind. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * gen_il-gen-gen_entities.adb: Remove Linker_Section_Pragma field from Record_Field_Kind. Minor comment improvement. diff --git a/gcc/ada/gen_il-gen-gen_entities.adb b/gcc/ada/gen_il-gen-gen_entities.adb --- a/gcc/ada/gen_il-gen-gen_entities.adb +++ b/gcc/ada/gen_il-gen-gen_entities.adb @@ -315,15 +315,14 @@ begin -- Gen_IL.Gen.Gen_Entities Sm (Entry_Formal, Node_Id), Sm (Esize, Uint), Sm (Interface_Name, Node_Id), - Sm (Linker_Section_Pragma, Node_Id), Sm (Normalized_First_Bit, Uint), Sm (Normalized_Position, Uint), Sm (Normalized_Position_Max, Uint), Sm (Original_Record_Component, Node_Id))); Cc (E_Component, Record_Field_Kind, - -- Components of a record declaration, private declarations of - -- protected objects. + -- Components (other than discriminants) of a record declaration, + -- private declarations of protected objects. (Sm (Discriminant_Checking_Func, Node_Id), Sm (DT_Entry_Count, Uint, Pre => "Is_Tag (N)"),