From patchwork Tue Jan 7 12:53:48 2025 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: 104270 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 93FAC3858C41 for ; Tue, 7 Jan 2025 13:45:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 93FAC3858C41 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=L2Sl81y4 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 B3861385608A for ; Tue, 7 Jan 2025 12:54:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B3861385608A 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 B3861385608A 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=1736254472; cv=none; b=Sq8e6Og9n5dcmx/7Edus82obE+bMgEdvmMN02wG1laYEIBgmWGOlDAiO3DHDgwCaIIb6aSS5A9/J2FYxxSf+tqhP+tk/31XkSOoqFOetvfRmr+dncWsZtImqWHwYM+21BXlom/2xp0HSz5uzY8XyygLZLtCPwWzK4RWm9GQ3C/Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736254472; c=relaxed/simple; bh=ojRFc9cwaSnjMdXXkJ/9WRrNo2GtHYQKvQLW3tvf8P8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Nm+BZe2UhsddEgmDXUSzoTC+aj6vwps5jSNg6+2QFeMTmbVEQYhtFQvbQ0d6sDywE9ni00FB8WOgyuNzDwGB64gC7kwuU36eu1C5V4DSVBWv5b293vFIaM6jlLOWskQFRPcr1VM50+7pXS94RX95fT8B5Oc8Q/iL+AwAPrT0DGg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3861385608A Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4361dc6322fso103279565e9.3 for ; Tue, 07 Jan 2025 04:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1736254470; x=1736859270; 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=abI229yiYahyEL/L0bPU2j+Qph9wKOFIywDlVPB9+b4=; b=L2Sl81y4zQkcx1iYDF/Aj+mfED1EzplfshAKe1C0UqPPO8QZ1mqSu+7Utb+qL8nBmU ckMI18FwT4Fgdx5m5aLItR1RBYEadWQEzCxcy1t4sPdnIb9W/GIMF2OSRVSZ6Y4Nom/8 8XLn3APG3HjQ4o0fXZVJj/HnX5+K//8M67xvl6N+kG1d2vN+PQ+Vb3TGOBtv2Ae+uqAs scUM8cBJbu9uoF6d34XAb9P4M5qV9iFaxrlHmi/onyX/6q2vmKIxvGGBWv3zOYQoT4GB YbjjgF6DFn9Syyp54EV76Wg8QpraiysAHOJDP+CrL158vYR80LOHNGcEeiVFlLMloUFf NpYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736254470; x=1736859270; 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=abI229yiYahyEL/L0bPU2j+Qph9wKOFIywDlVPB9+b4=; b=sS7w+v1cCrC02kp+HblOZTgVp1iHUBU4n21xXyOCWTAYtQT8bB5UkSeHSe3ld4Mkao LxdXJHivDGafNC7rcN/1h25k+1vx5aQU1ywSxrjmc9cSeFQDF1JmcIMfZ+NdKKghbSGs o3MZqERp1mU7sWCC7y9mSCfH5VKDSXdGWGNIYvZigNK/kUwaf+fIOjcvIBz7vTZDMG/M BE7J2q1pwQau/vtLHt2X8IHfRFEF5MC8Um9REEziHG6pizZfzJym7apDdtnfLxw/tHrj nHAafJ2AfKWHRRJiGHKnJm8t3xpMJfZj8/1305IdAlPwgtWTVSDEJ4JosVzZ9HwjWYcm /HXQ== X-Gm-Message-State: AOJu0YwjgbhxLvph2mrz9HqDZwChZTG4vKTuWx+o3ZnIVylbznKYsjQz RAsbiSw+zzj3CuF/oonUetOty/VGgFOD4pkuMLnzgUdruuiXBhBamVfxIcJKiEXYd7t5oUUDu6I = X-Gm-Gg: ASbGncsF/fNeZec70stDQAQ1y3dTlFwhTOGowWGX+JiObbHldyEbb6qg+zY6kPM3MgH NaMnb/ufWjgTX7v/Je/bxDGSzXCcn7lP1YOTKc2sl6OvvdwmHwH80+mbpdqzT5LE03EP+0vmS2n uTY6HOlIXWNHZWugxI18dU0B80RBAxg7MZKdBhWhZ09HtmfkbS9uMjuwaEXvDpMH+l2UmqfBG3p nIdvJJQyAQ2IWZXJ3JWkOmx5Dqlir6Z9LMIa22ZUdvMx9ZDCtzUzYyMwKMEpy9+OD3LXK0DERG+ /pgdSUN4fgM3leKoywQu33r4O8LOuWLKrzMgtZgFi7bW5uYWv5MGQDsZ6vkEqAcGxjV/hLIu X-Google-Smtp-Source: AGHT+IGgmySPvfz+bGFHETGCBARJWscmpFK7yqv5I609WqEwaq4Dw1JmUGM7fJsObGgOlO5aZ5Qr2A== X-Received: by 2002:a05:600c:4ecc:b0:434:a802:e9b2 with SMTP id 5b1f17b1804b1-4366854887cmr523748455e9.4.1736254470440; Tue, 07 Jan 2025 04:54:30 -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 5b1f17b1804b1-43656af6c42sm631014805e9.9.2025.01.07.04.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 04:54:30 -0800 (PST) From: =?utf-8?q?Marc_Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: =?utf-8?q?Marc_Poulhi=C3=A8s?= Subject: [COMMITTED 30/31] ada: Adjust pragma obsolescent message Date: Tue, 7 Jan 2025 13:53:48 +0100 Message-ID: <20250107125350.619654-30-poulhies@adacore.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250107125350.619654-1-poulhies@adacore.com> References: <20250107125350.619654-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 Do not mention an explicit version. gcc/ada/ChangeLog: * libgnat/a-calcon.ads: Adjust. * libgnat/a-calend.ads: Adjust. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnat/a-calcon.ads | 16 ++++++++++++---- gcc/ada/libgnat/a-calend.ads | 14 ++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/gcc/ada/libgnat/a-calcon.ads b/gcc/ada/libgnat/a-calcon.ads index a7be1f7f3fd..a94d5c63dff 100644 --- a/gcc/ada/libgnat/a-calcon.ads +++ b/gcc/ada/libgnat/a-calcon.ads @@ -37,7 +37,8 @@ with Interfaces.C; package Ada.Calendar.Conversions is function To_Ada_Time (Unix_Time : Interfaces.C.long) return Time; - pragma Obsolescent (To_Ada_Time, "Retires in v26"); + pragma Obsolescent + (To_Ada_Time, "This function may be removed in a future version"); -- Old version which will overflow at the 2038 Epochalypse function To_Ada_Time_64 (Unix_Time : Interfaces.C.long_long) return Time; @@ -74,7 +75,9 @@ package Ada.Calendar.Conversions is function To_Duration (tv_sec : Interfaces.C.long; tv_nsec : Interfaces.C.long) return Duration; - pragma Obsolescent (To_Duration, "Retires in v26"); + pragma + Obsolescent + (To_Duration, "This function may be removed in a future version"); -- Old version which will overflow at the 2038 Epochalypse function To_Duration_64 @@ -90,7 +93,10 @@ package Ada.Calendar.Conversions is (D : Duration; tv_sec : out Interfaces.C.long; tv_nsec : out Interfaces.C.long); - pragma Obsolescent (To_Struct_Timespec, "Retires in v26"); + pragma + Obsolescent + (To_Struct_Timespec, + "This function may be removed in a future version"); -- Old version which will overflow at the 2038 Epochalypse procedure To_Struct_Timespec_64 @@ -122,7 +128,9 @@ package Ada.Calendar.Conversions is -- The input date is considered to be in UTC function To_Unix_Time (Ada_Time : Time) return Interfaces.C.long; - pragma Obsolescent (To_Unix_Time, "Retires in v26"); + pragma + Obsolescent + (To_Unix_Time, "This function may be removed in a future version"); -- Old version which will overflow at the 2038 Epochalypse function To_Unix_Time_64 (Ada_Time : Time) return Interfaces.C.long_long; diff --git a/gcc/ada/libgnat/a-calend.ads b/gcc/ada/libgnat/a-calend.ads index 64907455896..032fad8294f 100644 --- a/gcc/ada/libgnat/a-calend.ads +++ b/gcc/ada/libgnat/a-calend.ads @@ -291,7 +291,8 @@ private package Conversion_Operations is function To_Ada_Time (Unix_Time : Long_Integer) return Time; - pragma Obsolescent (To_Ada_Time, "Retires in v26"); + pragma Obsolescent + (To_Ada_Time, "This function may be removed in a future version"); -- Old Unix to Ada Epoch conversion function To_Ada_Time_64 (Unix_Time : Long_Long_Integer) return Time; @@ -310,7 +311,8 @@ private function To_Duration (tv_sec : Long_Integer; tv_nsec : Long_Integer) return Duration; - pragma Obsolescent (To_Duration, "Retires in v26"); + pragma Obsolescent + (To_Duration, "This function may be removed in a future version"); -- Old Struct timespec to Duration conversion function To_Duration_64 @@ -322,7 +324,10 @@ private (D : Duration; tv_sec : out Long_Integer; tv_nsec : out Long_Integer); - pragma Obsolescent (To_Struct_Timespec, "Retires in v26"); + pragma + Obsolescent + (To_Struct_Timespec, + "This function may be removed in a future version"); -- Old Duration to struct timespec conversion procedure To_Struct_Timespec_64 @@ -342,7 +347,8 @@ private -- Time to struct tm conversion function To_Unix_Time (Ada_Time : Time) return Long_Integer; - pragma Obsolescent (To_Unix_Time, "Retires in v26"); + pragma Obsolescent + (To_Unix_Time, "This function may be removed in a future version"); -- Old Ada to Unix Epoch conversion function To_Unix_Time_64 (Ada_Time : Time) return Long_Long_Integer;