Message ID | 20240517083207.130391-31-poulhies@adacore.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> 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=dy6KoAZe; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VggTj3lB5z1ydW for <incoming@patchwork.ozlabs.org>; Fri, 17 May 2024 18:43:21 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4D8543849AF1 for <incoming@patchwork.ozlabs.org>; Fri, 17 May 2024 08:43:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 15DDC3849AFF for <gcc-patches@gcc.gnu.org>; Fri, 17 May 2024 08:32:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15DDC3849AFF 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 15DDC3849AFF Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::332 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715934799; cv=none; b=MuCUCxwCmPGuGax4gsXx/JYJ+3sz8RDCGfG+aRh2sxwwdD95tvDkN5PW80Epfaev1SL9ESWXLQTApcp+acxuRtsK8Fbyki72+PZGK8EJ3JXnj3zto5uRDt61j8btVRGY//k3eBQySz4mT43c0S3v7RgY/CS5XgcgfaCN/LdvBjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715934799; c=relaxed/simple; bh=1oSwqpq1bWRmV7fE86i+s2DLGDWKrTBli90eD91hQQ8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ut83NF6qcbeB4XhoJ+Tiv+e2nbe6R+zN2ltNIzMRngGbZTmVNhDJNIBl4z9j1eQ9KgZLQ1okGyzPFwGoekQrS+jKcfLvhF3Wzj1Hjt1yPsI1CwSkAbsm4P3HVFZd1FrLzJun/alSf5F7AIkdlV6f72klDuWRkWR+sMVN4GMqvAU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4201986d60aso35006585e9.3 for <gcc-patches@gcc.gnu.org>; Fri, 17 May 2024 01:32:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1715934768; x=1716539568; 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=uwwYFM+K/Of7aEipgxfUlJljYigCi/R6E/Gfb6xYxSw=; b=dy6KoAZeB56jXM8bwa60wrtJ15zL2JApErAN6+3WCahPAaZndkEHZPs8nrpw0xAiAO p0x49Sn7EFXrpMnV3Pq97BVaLXvPZrXlXv3DxJcxV2zzrpj3Ix8AwQVHzkAOOw7hDo3G WmiTNgW9wcYgldRQtHmGyFW+sCsjnWpV1qqFplg4WBkLBD+qm26aqF+u1dNuDP2sQSn7 NGSaEaIe0dO9YP7xBIHhSme5E6Sj5HxhFx62/erOgTwWqXoBHtYZled6LRgG109/HyDe HQQYdBc+JG1GZ93/62ql2noTE28o1H0lCw3zQLGYAWWK8TigBdTS5C3UbC8KR8dX1GOS ulCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715934768; x=1716539568; 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=uwwYFM+K/Of7aEipgxfUlJljYigCi/R6E/Gfb6xYxSw=; b=DnJJumMU6b453h1vC7n5QeIm81XWO3cWlFhXFMe5LKYUt3N5B9BMpWvr0mdBi1q8pM cOV6d1RfUK89fzFAcaP75R/UyLr2PvDNJClIOVsEmppzBOs95pjGOJ6vFtE6yLxtzthV D86v8CL0evuYQerlW1JuHwUw8Uo3t9tN8k1dCrz7QUsTs5+dq/pgS/yzUWfYDnj0tH94 GjDPFhOO0LbgxXoa9cOsnh5VbznhyiYP+m/uBp94ndHecTvyYc/oTed/WaccPp/7lccb AEBEv1FNc318YnnyqtEPYqoK1IPwrhWkD1xcgq9JXWURiMxqB97x7aJ9uMOne7i6Nbvc JdJQ== X-Gm-Message-State: AOJu0Yxlg8HXav3yo7/mS/MGmoytDsC7KjBFjepW49y4N99ZdlDqJKH9 qlMYAOaGjOnI5q7MhhbCNl+2omFs/jg8PzVJJd08aFX5B2w77TCUU87gc+mU4h47imAzXR7QKR8 = X-Google-Smtp-Source: AGHT+IFrj7t96Q48xJu+nfN237hUKFSjlGn8Ar4QtCa68k/YorIRktBAD4XEt/LrwUo7ShvfS5fQRw== X-Received: by 2002:a05:600c:444c:b0:41c:503:9a01 with SMTP id 5b1f17b1804b1-41feac5a3cfmr156379815e9.25.1715934767906; Fri, 17 May 2024 01:32:47 -0700 (PDT) Received: from poulhies-Precision-5550.lan ([2001:861:3382:1a90:de37:8b1c:1f33:2610]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-420273cff03sm75197045e9.26.2024.05.17.01.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 01:32:47 -0700 (PDT) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= <poulhies@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Eric Botcazou <ebotcazou@adacore.com> Subject: [COMMITTED 31/35] ada: Restore dependency on System.OS_Interface in System.Task_Primitives Date: Fri, 17 May 2024 10:32:03 +0200 Message-ID: <20240517083207.130391-31-poulhies@adacore.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240517083207.130391-1-poulhies@adacore.com> References: <20240517083207.130391-1-poulhies@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.0 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[COMMITTED,01/35] ada: Add support for 'Object_Size to pragma Compile_Time_{Warning, Error}
|
expand
|
diff --git a/gcc/ada/libgnarl/s-taspri__mingw.ads b/gcc/ada/libgnarl/s-taspri__mingw.ads index a51f752d805..6eae97d4af6 100644 --- a/gcc/ada/libgnarl/s-taspri__mingw.ads +++ b/gcc/ada/libgnarl/s-taspri__mingw.ads @@ -31,6 +31,7 @@ -- This is a NT (native) version of this package +with System.OS_Interface; with System.OS_Locks; with System.Win32; @@ -87,7 +88,7 @@ private end record; type Private_Data is limited record - Thread : aliased Win32.HANDLE; + Thread : aliased System.OS_Interface.Thread_Id; pragma Atomic (Thread); -- Thread field may be updated by two different threads of control. -- (See, Enter_Task and Create_Task in s-taprop.adb).
From: Eric Botcazou <ebotcazou@adacore.com> The dependency is relied upon by the binder to drag the tasking runtime. gcc/ada/ * libgnarl/s-taspri__mingw.ads: Add clause for System.OS_Interface. (Private_Data): Change type of Thread component. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnarl/s-taspri__mingw.ads | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)