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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Gaius Mulley
<ga...@gcc.gnu.org>:

https://gcc.gnu.org/g:a10dd5c46aa41e108b04f2494ffb00c6cab50c75

commit r15-9676-ga10dd5c46aa41e108b04f2494ffb00c6cab50c75
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Tue May 13 19:05:40 2025 +0100

    [PATCH] PR modula2/115276: libgm2 wraptime.cc field access all return -1.

    This patch provides autoconf tests for each field used in wraptime.cc
    referencing struct tm and struct timeval.

    libgm2/ChangeLog:

            PR modula2/115276
            * config.h.in: Regenerate.
            * configure: Regenerate.
            * configure.ac (AC_STRUCT_TIMEZONE): Add.
            (AC_CHECK_MEMBER): Test for struct tm.tm_year.
            (AC_CHECK_MEMBER): Test for struct tm.tm_mon.
            (AC_CHECK_MEMBER): Test for struct tm.tm_mday.
            (AC_CHECK_MEMBER): Test for struct tm.tm_hour.
            (AC_CHECK_MEMBER): Test for struct tm.tm_min.
            (AC_CHECK_MEMBER): Test for struct tm.tm_sec.
            (AC_CHECK_MEMBER): Test for struct tm.tm_year.
            (AC_CHECK_MEMBER): Test for struct tm.tm_yday.
            (AC_CHECK_MEMBER): Test for struct tm.tm_wday.
            (AC_CHECK_MEMBER): Test for struct tm.tm_isdst.
            (AC_CHECK_MEMBER): Test for struct timeval.tv_sec.
            (AC_CHECK_MEMBER): Test for struct timeval.tv_sec.
            (AC_CHECK_MEMBER): Test for struct timeval.tv_usec.
            * libm2iso/wraptime.cc (InitTimeval): Guard against lack
            struct timeval and malloc.
            (InitTimezone): Guard against lack of struct tm.tm_zone
            and malloc.
            (KillTimezone): Ditto.
            (InitTimeval): Guard against lack of struct timeval
            and malloc.
            (KillTimeval): Guard against lack of malloc.
            (settimeofday): Guard against lack of struct tm.tm_zone.
            (GetFractions): Guard against lack of struct timeval.
            (localtime_r): Ditto.
            (GetYear): Guard against lack of struct tm.
            (GetMonth): Ditto.
            (GetDay): Ditto.
            (GetHour): Ditto.
            (GetMinute): Ditto.
            (GetSecond): Ditto.
            (GetSummerTime): Ditto.
            (GetDST): Guards against lack of struct timezone.
            (SetTimezone): Ditto.
            (SetTimeval): Guard against lack of struct tm.

    (cherry picked from commit 419f40af5c5335b84c16e4891377142f12f7577b)

    Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>
  • [Bug modula2/115276] libgm2 wra... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to