From patchwork Thu Mar 7 20:56:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1909458 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gxqHL515; 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 4TrM7Z0xM6z1yWx for ; Fri, 8 Mar 2024 07:57:30 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 22F3D385C32C for ; Thu, 7 Mar 2024 20:57:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DD07B3857707 for ; Thu, 7 Mar 2024 20:56:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DD07B3857707 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DD07B3857707 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709845020; cv=none; b=iYPE5SC5KwM6GtLxLhMdBPNgXxMeb8TdZdqBifN3A0V6dtu44epMu1S74IMrDepisTNRCfQARQnlmrhARLasOHGGX00jDTddpDo7PJL2dU1PtSUCulKG7JjtCCpaFOSTCSOW17tJKJ/d+9o9+rHhU1I5hHkKVLMumTEk9AWjY5A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709845020; c=relaxed/simple; bh=RmrddA1+NZjLvtN+JygDn/3jFLg0Wx20E96iqohikiw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Pt2Kr15/z8z7x9UBVB2jYwX6BRZU1ZN+zDRFMNvNyu34nT/7oBDBXOMqRn1PJuOpVpEBQj68lENZYLojcavi2PSQPwowwU9Yj84WpbNQ1OS1B40FuYxoQi5O0NEzrlcDzP/OQzYP5L/TwKOjnnSqAJS44V5lNmOWAv3w6uJXBjY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709845018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=R3Al3mM2qwwF4xJ6hD7w03KrW2QXlZZkOZewgCxC1+k=; b=gxqHL515WabYzJmLN/h8B4O4R2+PMox4AUsrfZTckXQL+viQkT8ez590wiNMvhq/DkLQSx hDBgEXLMKeDBB7tieOCjNSED65OoOpLfVS+mUTg8LS+I/mzQPwmYMHcAzsSzRXFiEbLVt2 aPa3yEp5WPRe5l9ml8rN0LF3xk3SnYM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-32-zDcGbZ70MKKMG8S5i1ZIgQ-1; Thu, 07 Mar 2024 15:56:57 -0500 X-MC-Unique: zDcGbZ70MKKMG8S5i1ZIgQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E560D800267; Thu, 7 Mar 2024 20:56:56 +0000 (UTC) Received: from localhost (unknown [10.42.28.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id B18361C05E1C; Thu, 7 Mar 2024 20:56:56 +0000 (UTC) From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Update expiry times for leap seconds lists Date: Thu, 7 Mar 2024 20:56:45 +0000 Message-ID: <20240307205656.590739-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Tested x86_64-linux. Pushed to trunk. -- >8 -- The list in tzdb.cc isn't the only hardcoded list of leap seconds in the library, there's the one defined inline in (to avoid loading the tzdb for the common case) and another in a testcase. This updates them to note that there are no new leap seconds in 2024 either, until at least 2024-12-28. libstdc++-v3/ChangeLog: * include/std/chrono (__get_leap_second_info): Update expiry time for hardcoded list of leap seconds. * testsuite/std/time/tzdb/leap_seconds.cc: Update comment. --- libstdc++-v3/include/std/chrono | 2 +- libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono index a59af34567c..3a9751781d2 100644 --- a/libstdc++-v3/include/std/chrono +++ b/libstdc++-v3/include/std/chrono @@ -3243,7 +3243,7 @@ namespace __detail }; // The list above is known to be valid until (at least) this date // and only contains positive leap seconds. - const sys_seconds __expires(1703721600s); // 2023-12-28 00:00:00 UTC + const sys_seconds __expires(1735344000s); // 2024-12-28 00:00:00 UTC #if _GLIBCXX_USE_CXX11_ABI || ! _GLIBCXX_USE_DUAL_ABI if (__ss > __expires) diff --git a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc index f5401a24526..5999635a89f 100644 --- a/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc +++ b/libstdc++-v3/testsuite/std/time/tzdb/leap_seconds.cc @@ -21,7 +21,7 @@ void test_load_leapseconds() { std::ofstream("leapseconds") << R"( -# These are all the real leap seconds as of 2022: +# These are all the real leap seconds as of 2024: Leap 1972 Jun 30 23:59:60 + S Leap 1972 Dec 31 23:59:60 + S Leap 1973 Dec 31 23:59:60 + S