From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id E85713858D1E; Fri, 23 Dec 2022 02:15:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E85713858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1671761724; x=1703297724; h=from:to:cc:in-reply-to:subject:mime-version: content-transfer-encoding:references:message-id:date; bh=jVqk6hGPtaLjCZ+/rFh70nsEFYkbkBQ1fzp41P4Rqrg=; b=Uzg1uBK0vtzFhmp+11vCaA87j8JQrD0pnoPNLg+NRSBuVZabX6eVh8Y3 3YYHdQDe6kca9pm7ldBwIbXSPapyzmgVEs/s5kZFgMYOUWEqg+PqnHn7u e44qADs05F5gheuLJIkfpUIpCBdoUUy7fCpdXocWCuQDwaU4wqVDHQQmd h+57/gZXISO/QnJi/Zhju2hhRAVrXy6uoKkz3mJQZ2nvC/xTvLEG5I7Rc whl+KYtx8G8OtgOd3m+S2DC1lLDgIJyV6Z0Y0VgZDiZYxDauHBKfDk29e cRQarf60i80vKhL6e25M7+b1oaqvVFcoJCIdT9enetkA18/jL6cheKnTn g==; From: Hans-Peter Nilsson To: Jonathan Wakely CC: , In-Reply-To: <20221222233704.772013-1-jwakely@redhat.com> (message from Jonathan Wakely via Gcc-patches on Fri, 23 Dec 2022 00:37:04 +0100) Subject: build broke, cris-elf: [committed] libstdc++: Implement C++20 time zone support in MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT References: <20221222233704.772013-1-jwakely@redhat.com> Message-ID: <20221223021520.B89212043F@pchp3.se.axis.com> Date: Fri, 23 Dec 2022 03:15:20 +0100 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 List-Id: > From: Jonathan Wakely via Gcc-patches > Date: Fri, 23 Dec 2022 00:37:04 +0100 > This is the largest missing piece of C++20 support. Only the cxx11 ABI > is supported, due to the use of std::string in the API for time zones. > libstdc++-v3/ChangeLog: > > * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): New macro. > * config.h.in: Regenerate. > * config/abi/pre/gnu.ver: Export new symbols. > * configure: Regenerate. > * configure.ac (GLIBCXX_ZONEINFO_DIR): Use new macro. > * include/std/chrono (utc_clock::from_sys): Correct handling > of leap seconds. > (nonexistent_local_time::_M_make_what_str): Define. > (ambiguous_local_time::_M_make_what_str): Define. > (__throw_bad_local_time): Define new function. > (time_zone, tzdb_list, tzdb): Implement all members. > (remote_version, zoned_time, get_leap_second_info): Define. > * include/std/version: Add comment for __cpp_lib_chrono. > * src/c++20/Makefile.am: Add new file. > * src/c++20/Makefile.in: Regenerate. > * src/c++20/tzdb.cc: New file. > * testsuite/lib/libstdc++.exp: Define effective target tzdb. > * testsuite/std/time/clock/file/members.cc: Check file_time > alias and file_clock::now() member. > * testsuite/std/time/clock/gps/1.cc: Likewise for gps_clock. > * testsuite/std/time/clock/tai/1.cc: Likewise for tai_clock. > * testsuite/std/time/syn_c++20.cc: Uncomment everything except > parse. > * testsuite/std/time/clock/utc/leap_second_info.cc: New test. > * testsuite/std/time/exceptions.cc: New test. > * testsuite/std/time/time_zone/get_info_local.cc: New test. > * testsuite/std/time/time_zone/get_info_sys.cc: New test. > * testsuite/std/time/time_zone/requirements.cc: New test. > * testsuite/std/time/tzdb/1.cc: New test. > * testsuite/std/time/tzdb/leap_seconds.cc: New test. > * testsuite/std/time/tzdb_list/1.cc: New test. > * testsuite/std/time/tzdb_list/requirements.cc: New test. > * testsuite/std/time/zoned_time/1.cc: New test. > * testsuite/std/time/zoned_time/custom.cc: New test. > * testsuite/std/time/zoned_time/deduction.cc: New test. > * testsuite/std/time/zoned_time/req_neg.cc: New test. > * testsuite/std/time/zoned_time/requirements.cc: New test. > * testsuite/std/time/zoned_traits.cc: New test. > +++ b/libstdc++-v3/src/c++20/tzdb.cc > + static_assert(sizeof(datetime) == 8 && alignof(datetime) == 4); This broke build for cris-elf: x/autotest/hpautotest-gcc1/gcc/libstdc++-v3/src/c++20/tzdb.cc:451:38: error: static assertion failed 451 | static_assert(sizeof(datetime) == 8 && alignof(datetime) == 4); | ~~~~~~~~~~~~~~~~~^~~~ x/autotest/hpautotest-gcc1/gcc/libstdc++-v3/src/c++20/tzdb.cc:451:38: note: the comparison reduces to '(7 == 8)' make[5]: *** [Makefile:562: tzdb.lo] Error 1 (and I don't think "alignof(datetime) == 4" is true either) Happy holidays. brgds, H-P