From patchwork Thu Nov 30 10:19:05 2023 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: 81010 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 484E8384DED3 for ; Thu, 30 Nov 2023 10:19:40 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 121A23857437 for ; Thu, 30 Nov 2023 10:19:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 121A23857437 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 121A23857437 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701339549; cv=none; b=Pz2lHe97WW5RwKTYFZ9xk8cLo8yUqgSK/EbyiKpZyWaAD8K/XbIlPVtidbkv1TJJbrQRetFPItjHXJ0XFiyA7quJXdj0KoCyIhyN04gGEcCMhQftSKNqyeIpE4VSsGjtGSQ/kWB+pXrk/q7HpZupgyPSLgghLaLWTDRydLFDZhI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701339549; c=relaxed/simple; bh=2L4EGODWv3/HGtRVMSg7/sR8w+x6Q79CgABoxFvxl1M=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LIun2Zli4ptmD0pkTgDgyNsD4WeebsNfH2DwkK999RKPV/BL8EAEd8g8IK50+/JJWvxzBuBQfP7Lk/P0VrBTJ2CKbAKDnmRkKOqY+nZwVOFDINk9/6ZcSPfn2SbbX6q1IIvakLl/OFCNoNWm3hB+uhCrZKZ3yL5kZD0pM44w9hY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40b4f60064eso6258655e9.1 for ; Thu, 30 Nov 2023 02:19:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1701339547; x=1701944347; 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=6n1W85P/lzwl5FjWSY00buKk4rWsxtqWPmzkm87mBsM=; b=X89T+PLD3iTiq1LdkFC74YS9Fslt8iBZMXyW8ZYvEVQ6Hx6p8C+BIb1hFCRL3U5sUC uydhq/kpYI/W+sfdSdsEHbDSxh03x3rgpxBLQvdnizAPz9K9D4OGBFBAOROG190MlPRD rt6/SV6FaBChRVFzNNb3+zLrdtynMdBvgJ11GDj2ubczm4OWdPiS3pphsSfKZw55Z5oD gwPpybKPxImTZMPVzWYPU8rz4Srf/wmBMfrVGWTQeOQlTyYHF9YmdLdwhEvHHgCu9gWn WwipEx3i3pjnjwMQjNLiCz8U3OjcE910BGBhkgD+nTm2TF9oQ0c0/d5lfYJfGFddpg0V whyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701339547; x=1701944347; 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=6n1W85P/lzwl5FjWSY00buKk4rWsxtqWPmzkm87mBsM=; b=nRgiKUwfZhiQsyKOfywMoovJG4xNL6umvgpbXwF5rqKyHGnlcURT5u5HGWZbCjSR2Q KhSogog/AMIqJrQI3Oid+LeaoYEHuWpAXXZ2q2F1Hdy+7s7oV5UnyTB+Yb08Ig8/GHEO VVgOzOmfcfF8dZb4V262wotxGxq3YqrgasHufz9DJB3jysI7OdKffp8ijRSZyYPxoBlY AHNo4rsx516P6xod+L0N1fOPIJVos+uMf4dPZAmX8YcQhdOfS93yxUnhMG6w4ReKkTvg Ty5ngCWx7xHW7ThuNkdHZbY4t4RWgsG2Q8XdVVvcB46zR/e2Yry0vwPpcOcZXAMIoye9 5aZg== X-Gm-Message-State: AOJu0YwPDXg9+1ig82ONzyWopUzWXnu0ZYMxiwlaO9bL1fhlvKfQElUX yboaotSD2nd8ETW8UGmj8NdRjO5nN27iepXPtK1eOg== X-Google-Smtp-Source: AGHT+IE/AI2Qdh0MZW6rcBKigaZ+f0KgTdcUh7znTZG7ntFMyrAcR+Fq8NSC1fMWFLdMggQUqEvOVQ== X-Received: by 2002:a05:600c:4fd0:b0:40b:5401:f02 with SMTP id o16-20020a05600c4fd000b0040b54010f02mr3000246wmq.32.1701339546808; Thu, 30 Nov 2023 02:19:06 -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 fs20-20020a05600c3f9400b0040b5517ae31sm4345536wmb.6.2023.11.30.02.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:19:06 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: Steve Baird Subject: [COMMITTED] ada: Add comment describing Partition_Elaboration_Policy dependency. Date: Thu, 30 Nov 2023 11:19:05 +0100 Message-ID: <20231130101905.3094070-1-poulhies@adacore.com> X-Mailer: git-send-email 2.42.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+patchwork=sourceware.org@gcc.gnu.org From: Steve Baird Add a comment in the spec for the default (as opposed to hie) version of Ada.Real_Time.Timing_Events indicating that it is incompatible with a a Partition_Elaboration_Policy specification specifying a policy other than Concurrent. gcc/ada/ * libgnarl/a-rttiev.ads: add a comment Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnarl/a-rttiev.ads | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/ada/libgnarl/a-rttiev.ads b/gcc/ada/libgnarl/a-rttiev.ads index cb272dfb759..3fa7d6097f6 100644 --- a/gcc/ada/libgnarl/a-rttiev.ads +++ b/gcc/ada/libgnarl/a-rttiev.ads @@ -61,6 +61,12 @@ package Ada.Real_Time.Timing_Events is function Time_Of_Event (Event : Timing_Event) return Time; + -- The compilation closure of this version (as opposed to the hie version) + -- of Ada.Real_TIme.Timing_Events includes a specification of a + -- Concurrent Partition_Elaboration_Policy. Thus, a bind-time error + -- will result if this unit occurs in the same partition as a conflicting + -- Partition_Elaboration_Policy specification. + private type Timing_Event is new Ada.Finalization.Limited_Controlled with record