public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-110779-4-ijDQHLZCzO@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-110779-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <gaius@gcc.gnu.org>:

https://gcc.gnu.org/g:63fb0bedb8077ac1e6b6337f198b4eae30813fbc

commit r14-3180-g63fb0bedb8077ac1e6b6337f198b4eae30813fbc
Author: Gaius Mulley <gaiusmod2@gmail.com>
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 functions,
    structures and contains fallbacks.  These fixes were required under Darwin.

    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 <gaiusmod2@gmail.com>

  parent reply	other threads:[~2023-08-12 17:19 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-23 19:55 [Bug modula2/110779] New: " gaius at gcc dot gnu.org
2023-07-23 19:56 ` [Bug modula2/110779] " gaius at gcc dot gnu.org
2023-08-04  4:04 ` gaius at gcc dot gnu.org
2023-08-04 12:17 ` gaius at gcc dot gnu.org
2023-08-05 16:39 ` cvs-commit at gcc dot gnu.org
2023-08-05 16:43 ` gaius at gcc dot gnu.org
2023-08-07 14:10 ` cvs-commit at gcc dot gnu.org
2023-08-07 17:07 ` ro at gcc dot gnu.org
2023-08-07 23:51 ` gaius at gcc dot gnu.org
2023-08-08 11:40 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-09  8:36 ` cvs-commit at gcc dot gnu.org
2023-08-09 10:20 ` cvs-commit at gcc dot gnu.org
2023-08-10 14:29 ` gaius at gcc dot gnu.org
2023-08-12 15:27 ` iains at gcc dot gnu.org
2023-08-12 17:19 ` cvs-commit at gcc dot gnu.org [this message]
2023-08-12 19:21 ` cvs-commit at gcc dot gnu.org
2023-08-12 19:24 ` gaius at gcc dot gnu.org
2023-08-13 17:47 ` egallager at gcc dot gnu.org
2023-11-09  7:45 ` tschwinge at gcc dot gnu.org
2023-11-09 18:10 ` gaius at gcc dot gnu.org
2023-11-10 20:04 ` gaius at gcc dot gnu.org
2023-11-10 20:47 ` gaius at gcc dot gnu.org
2023-11-13 15:12 ` cvs-commit at gcc dot gnu.org
2024-01-24 13:45 ` gaius at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-110779-4-ijDQHLZCzO@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).