From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B9263858D32; Sat, 12 Aug 2023 17:19:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B9263858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691860797; bh=CFgR397/qRSOMbISPp3EyynGiru76r37phhx2VOy5CY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DwPU09O0jO0kXJCd4XwRCukLmAogoxWo+3rYF2hqLlbEflD0b6yc+E2fYpa6eqnx0 orErIR7od6cKH5RSFKmhjxi04c75i9aSy98uWog1XfoG7CR/8JGxvAI9iyVO5bH+Y1 hDQ8YjC1n9EjiCyQ6MJOodjy5W7LbPJd511YVzZQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/110779] SysClock can not read the clock Date: Sat, 12 Aug 2023 17:19:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110779 --- Comment #14 from CVS Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:63fb0bedb8077ac1e6b6337f198b4eae30813fbc commit r14-3180-g63fb0bedb8077ac1e6b6337f198b4eae30813fbc Author: Gaius Mulley Date: Sat Aug 12 18:17:41 2023 +0100 PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) This patch adds corrections to defensively check against glibc function= s, structures and contains fallbacks. These fixes were required under Dar= win. gcc/m2/ChangeLog: PR modula2/110779 * gm2-libs-iso/SysClock.mod (EpochTime): New procedure. (GetClock): Call EpochTime if the C time functions are unavailable. * gm2-libs-iso/wrapclock.def (istimezone): New function definition. libgm2/ChangeLog: PR modula2/110779 * configure: Regenerate. * configure.ac: Provide special case test for Darwin cross configuration. (GLIBCXX_CONFIGURE): New statement. (GLIBCXX_CHECK_GETTIMEOFDAY): New statement. (GLIBCXX_ENABLE_LIBSTDCXX_TIME): New statement. * libm2iso/wrapclock.cc: New sys/time.h conditional include. (sys/syscall.h): Conditional include. (unistd.h): Conditional include. (GetTimeRealtime): Re-implement. (SetTimeRealtime): Re-implement. (timezone): Re-implement. (istimezone): New function. (daylight): Re-implement. (isdst): Re-implement. (tzname): Re-implement. Signed-off-by: Gaius Mulley =