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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Gaius Mulley
<[email protected]>:

https://gcc.gnu.org/g:0e3e2cc03e6a9d8d48fa5269070976f3d7d0a750

commit r14-10950-g0e3e2cc03e6a9d8d48fa5269070976f3d7d0a750
Author: Gaius Mulley <[email protected]>
Date:   Wed Nov 20 09:22:53 2024 +0000

    [PATCH] PR modula2/115276 bugfix libgm2 wraptime.InitTM returns NIL

    This patch fixes libgm2/libm2iso/wraptime.cc:InitTM so that
    it does not always return NULL.  The incorrect autoconf macro
    was used (inside InitTM) and the function short circuited
    to return NULL.  The fix is to use HAVE_SYS_TIME_H and use
    AC_HEADER_TIME in libgm2/configure.ac.

    libgm2/ChangeLog:

            PR modula2/115276
            * config.h.in: Regenerate.
            * configure: Regenerate.
            * configure.ac: Use AC_HEADER_TIME.
            * libm2iso/wraptime.cc (InitTM): Check HAVE_SYS_TIME_H
            before using struct tm to obtain the size.

    gcc/testsuite/ChangeLog:

            PR modula2/115276
            * gm2/isolib/run/pass/testinittm.mod: New test.

    (cherry picked from commit d1a1f7e9f0bedea55c558ab95127679bc3e9ff72)

    Signed-off-by: Gaius Mulley <[email protected]>

Reply via email to