From patchwork Thu Aug 1 15:17:34 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: 1967884 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=XaC3zGNb; 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 4WZYGS4Y9Tz1yZv for ; Fri, 2 Aug 2024 01:46:08 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CB8EB3864C6A for ; Thu, 1 Aug 2024 15:46:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id AA68E3857000 for ; Thu, 1 Aug 2024 15:18:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA68E3857000 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 AA68E3857000 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::234 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722525535; cv=none; b=IEyBbeuvegaI0Bv4l3LogCrBAwZL0jcBtXmGV3YstSEdF0OOPeHljvvmLn+/4Cg6KxOw3d9C1ONfXUp3fK7LGiguFfoWJDDcXxK43unr9eziQclvZE113Vw+C2o4WNlampeaddzYGgxUAca5PtBNHS/A0QbFiBc001vdcUQtPLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722525535; c=relaxed/simple; bh=Dk04Cqoq+ujX4NzxDxKcxP7EMpnH4Ze5ojGT4GIJN5E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=K8x/H/rX2+YTww8kJivNQPbmZdP+EX7YACt5KeIbbHUcDnNwl2c9poUAJYI7MVV1PT0ryLwCvTW3yyx1dlUs/soQK9wiMRApw2A45F1h35vmgj7+vFjn1S8+miwmrO4Gdau6+yVcMnsXWR1kaTko0Y4/5IMYCt62TTC1crZiMXs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2eeb1051360so78999911fa.0 for ; Thu, 01 Aug 2024 08:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1722525512; x=1723130312; 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=kqmOTNoCixyulKqaVuht9gzHT/sODshnz9m4EIGZmMc=; b=XaC3zGNbfF+nvNZ2y9F2ZPzDfkZlBmE1ns2O+Omh/u/gI5gPyQ4W0Jrrtdamp5Aqff RYcEL+DAnCmbMhMZjZ7C2DgQkfGf0CfjfJm3PS0xdFxap71znAqdRNEcKK7VO7zehZch DtkY/L3RhjELdZ8QZV0LxjvCY/fTXPVO8G1hJSXGyZk5H7TEFGTAVPKHyGkAJ22gcTdl rrSfbsZDL2+g+3VG4Wt6ye1Sgshg7z/z1GUqHW7Baeqcrp9bT1erKT/1W/+N4s/v+ijR kZ5uj7KgoJ03e5uak75jOBB6zMeCBEaf8KeSWfXgg1cblzQleN8vQ9/l/GjgfL71tVgi A3Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722525512; x=1723130312; 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:message-id:reply-to; bh=kqmOTNoCixyulKqaVuht9gzHT/sODshnz9m4EIGZmMc=; b=g3QfcHMHFMNnZJhGE+2z5VXOkCAySakA9+KQ4vpPhy+xKj0cj57VbDY3/pNDX+NMEd MPzjR0B9wpebZpPLbqgVDPUj60wuoEgyhjRr/rSx2GUX14KEuaeDmyB51T66WA7U8e25 exhZfp7DHClCelTHnwxsqauCeyd5EKG4wiY4sroQdopvG0DqdSP/SVXf0Jg0OCcDDspf wUsX2s+f/UfXgeNH0k6m4k19yjQBSG7EK/TF0g7r8114rDTqnW+5jlNHjVY9h5WQAJJV J4TqpYejSGfnL3gYeQYht9DTqcvuF8ZRcIBtZ6h2vLMm50ljy2O45/k9iZKYNLCz3qAd PiGQ== X-Gm-Message-State: AOJu0Yz2gB3u5orY5oPV853pPJMig8sbm+TP1/YlEbKZT5XMPs4MjRby N+ij5zruLTIHcNoJb33kXzvuiBOpbQSWUXWnKjdKLM/9qWop7xWVpDOUlBv3x+UZiS3I3J9vo0C zDA== X-Google-Smtp-Source: AGHT+IEeAFxYAHQIRClHWgCq9XE/o7lOXpj1j42kZBZscMY1zfHyoJfrrRGGUxRw1hJjr2XZ1NtCwQ== X-Received: by 2002:a2e:868e:0:b0:2ef:2b08:1747 with SMTP id 38308e7fff4ca-2f15aa91609mr4741531fa.13.1722525512064; Thu, 01 Aug 2024 08:18:32 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:b6aa:4751:9ea1:da1e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b36857fdesm20065995f8f.75.2024.08.01.08.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Aug 2024 08:18:31 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou Subject: [COMMITTED 26/30] ada: Fix oversight in documentation of At_End_Proc Date: Thu, 1 Aug 2024 17:17:34 +0200 Message-ID: <20240801151738.400796-26-poulhies@adacore.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240801151738.400796-1-poulhies@adacore.com> References: <20240801151738.400796-1-poulhies@adacore.com> 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 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 It is documented for N_Subprogram_Body_Stub instead of N_Subprogram_Body. gcc/ada/ * sinfo.ads (N_Block_Statement): Move At_End_Proc to the end of slot list and alphabetize flag list. (N_Subprogram_Body): Add At_End_Proc. (N_Package_Body): Move At_End_Proc to the end of slot list. (N_Subprogram_Body_Stub): Remove At_End_Proc. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sinfo.ads | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads index 768bcc0de82..95fceb5b71b 100644 --- a/gcc/ada/sinfo.ads +++ b/gcc/ada/sinfo.ads @@ -5174,14 +5174,14 @@ package Sinfo is -- Handled_Statement_Sequence -- Activation_Chain_Entity -- Cleanup_Actions - -- Has_Created_Identifier - -- Is_Asynchronous_Call_Block - -- Is_Task_Allocation_Block + -- At_End_Proc (set to Empty if no clean up procedure) -- Exception_Junk + -- Has_Created_Identifier -- Is_Abort_Block + -- Is_Asynchronous_Call_Block -- Is_Initialization_Block + -- Is_Task_Allocation_Block -- Is_Task_Master - -- At_End_Proc (set to Empty if no clean up procedure) ------------------------- -- 5.7 Exit Statement -- @@ -5456,6 +5456,7 @@ package Sinfo is -- Handled_Statement_Sequence -- Activation_Chain_Entity -- Corresponding_Spec + -- At_End_Proc (set to Empty if no clean up procedure) -- Acts_As_Spec -- Bad_Is_Detected used only by parser -- Do_Storage_Check @@ -5693,8 +5694,8 @@ package Sinfo is -- Declarations -- Handled_Statement_Sequence (set to Empty if no HSS present) -- Corresponding_Spec - -- Was_Originally_Stub -- At_End_Proc (set to Empty if no clean up procedure) + -- Was_Originally_Stub -- Note: if a source level package does not contain a handled sequence -- of statements, then the parser supplies a dummy one with a null @@ -6726,7 +6727,6 @@ package Sinfo is -- Corresponding_Spec_Of_Stub -- Library_Unit points to the subunit -- Corresponding_Body - -- At_End_Proc (set to Empty if no clean up procedure) ------------------------------- -- 10.1.3 Package Body Stub --