From patchwork Tue May 21 07:30:18 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: 90541 Return-Path: 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 2E773384AB4F for ; Tue, 21 May 2024 07:36:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 2A63E3858D38 for ; Tue, 21 May 2024 07:31:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A63E3858D38 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 2A63E3858D38 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::336 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276665; cv=none; b=trmOHN/WNwEZCaEW8F4slgc77A4dMX+/CrG7Suq44Vf6Vh056N/QEdBcEI7UiP4fRRboLLTjMIipHO2E5fjSh18C0qaHBHY0y6nQ6LOfo8ntVjTk8o5ow+a2lSBa2flySYDZkzPROSsBbFCm9I8CHHcIBdMFOpVL5VoS/uU3aTg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716276665; c=relaxed/simple; bh=sbKFqlw7EHkr2v0X7sXpIbnFevZv4mNu3fsaXZfBzKI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MZhjhmvc2fM6n+9WiPU1FbDYZKvI9B2r9/oWjZ6UXQJle65PNSMKbmOGnRvY5rgmu2KC/C83AytOFvgvWhEIW3ukaELWJe5nHt8pAgftk4ieE0nAx62L6y2cKtK2gWm2DSkAztirJ8sfIsJ9u3Qvcq5aIJBt87JxI4kPa9g2UqU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-420160f8f52so27209645e9.0 for ; Tue, 21 May 2024 00:31:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1716276660; x=1716881460; 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=1WaJbap7/vcovB1GrI+EtbHqGpYwkCZAaPRnsOm6JrQ=; b=IzRN5Qn4uJvPBMh0GMavnQPBukGY5MURivCtfgC8VVc3bBTb035GzB75JkLjkO/fG+ kFIfYiqqoG6LaVuVm+nd4Thwmth13ZvYQ8rpeS3V8+eVCd8RY6B3BcKsCYd4i3wySHzP s7bK6idaoBp1wOawBtFQ8ncxZ0zuvmsXvcquNa81Oe8gT/iR16aylZXSeO7oJcrMw2Z0 COPwPhVhiEuCY4CKymGzObWCT+wUTlDh6hj+PvlBt8rmEDGGKGBj+ewUu43GrnEApW5e 7z2E3GvuPoAFL2AGgW716YJ/H2oYEutiu6VT7bNq7/W9iL+YXDLyu8gEgqMEc5B6Rren l/nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716276660; x=1716881460; 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=1WaJbap7/vcovB1GrI+EtbHqGpYwkCZAaPRnsOm6JrQ=; b=w9EQrOP8TJj/30QdGYF6yB8iPrC8wrJO75LcCE2SsPX5oFhNFAWFP3IUVqx1DYhBQi mGmeJ4KWKForimNGOdwE3/vljERRFyXzGZm9JgDlzVb5vYiVWj8PJqk/oVnHrAaCcy3+ LRTTuxMy77EGyAVF8ZY5nkmHzytslz8irtBn0wm39LhuE/oTc3y8xH3UFvTcf2RihRF8 PVCJJn45UBoXrExsIu+mQdy+PoDVB/tqLV8tZ/rYNha/eeUI4YZOrfzhZOCNexwoXw1H No2jrutCwuq9xILu/u7VwIfvrLl4Sjl/1+KbX4a0jQbAgSFFbpCzzaX6NNrq/V6skx44 DlCQ== X-Gm-Message-State: AOJu0Yxx8oIq2QA5fkjy37sUa8dyLIB9bhbBMPW3XmTPzNYc9jJ6QRu5 B1b9n1M4BZMyq9zxv7fRmobFfpQFiytWlAhfIxI9HfQ9wZvJHUNL9fdprodQ5acxKTorFimriZA = X-Google-Smtp-Source: AGHT+IETwlzdPADUzlx+JnYZ3i+gYCwRL+QXZI83mIuW4Nz8MBeEyk51w6Zny9wOBpN2ARK9n7yR+g== X-Received: by 2002:a05:600c:5251:b0:420:10fa:67c4 with SMTP id 5b1f17b1804b1-42010fa6864mr195603965e9.19.1716276659732; Tue, 21 May 2024 00:30:59 -0700 (PDT) Received: from localhost.localdomain ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccee9292sm453333645e9.37.2024.05.21.00.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:30:59 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED 15/31] ada: Fix layout in a list of aspects Date: Tue, 21 May 2024 09:30:18 +0200 Message-ID: <20240521073035.314024-15-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240521073035.314024-1-poulhies@adacore.com> References: <20240521073035.314024-1-poulhies@adacore.com> MIME-Version: 1.0 X-Spam-Status: No, score=-13.8 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+patchwork=sourceware.org@gcc.gnu.org From: Piotr Trojanek Code cleanup; semantics is unaffected. gcc/ada/ * aspects.ads (Nonoverridable_Aspect_Id): Fix layout. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/aspects.ads | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/gcc/ada/aspects.ads b/gcc/ada/aspects.ads index ce393d4f602..3cc62de3411 100644 --- a/gcc/ada/aspects.ads +++ b/gcc/ada/aspects.ads @@ -237,14 +237,17 @@ package Aspects is -- Aspect_Id's excluding No_Aspect subtype Nonoverridable_Aspect_Id is Aspect_Id with - Static_Predicate => Nonoverridable_Aspect_Id in - Aspect_Default_Iterator | Aspect_Iterator_Element | - Aspect_Implicit_Dereference | Aspect_Constant_Indexing | - Aspect_Variable_Indexing | Aspect_Aggregate | - Aspect_Max_Entry_Queue_Length - | Aspect_No_Controlled_Parts - -- ??? No_Controlled_Parts not yet in Aspect_Id enumeration - ; -- see RM 13.1.1(18.7) + Static_Predicate => + Nonoverridable_Aspect_Id in Aspect_Aggregate + | Aspect_Constant_Indexing + | Aspect_Default_Iterator + | Aspect_Implicit_Dereference + | Aspect_Iterator_Element + | Aspect_Max_Entry_Queue_Length + | Aspect_No_Controlled_Parts + | Aspect_Variable_Indexing; + -- ??? No_Controlled_Parts not yet in Aspect_Id enumeration see RM + -- 13.1.1(18.7). -- The following array indicates aspects that accept 'Class