[Bug modula2/108344] Many tests time out: isatty called in a tight loop

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 28 21:51:52 GMT 2023


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

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

https://gcc.gnu.org/g:35a04220554d62d9bbe068dfa2f52d4d2d572805

commit r13-7636-g35a04220554d62d9bbe068dfa2f52d4d2d572805
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Fri Jul 28 22:50:41 2023 +0100

    [PATCH] PR modula2/108344 disable default opening of /dev/tty

    This patch changes removes the static initialisation code for
    KeyBoardLEDs.cc.  The module is only initialised if one of the
    exported functions is called.  This is useful as the module will
    access /dev/tty which might not be available.  TimerHandler.mod has
    also been changed to disable the scroll lock LED as a sign of life.

    gcc/m2/ChangeLog:

            PR modula2/108344
            * gm2-libs-coroutines/TimerHandler.mod (EnableLED): New
            constant.
            (Timer): Test EnableLED before switching on the scroll LED.

    libgm2/ChangeLog:

            PR modula2/108344
            * libm2cor/KeyBoardLEDs.cc (initialize_module): New
            function.
            (SwitchScroll): Call initialize_module.
            (SwitchNum): Call initialize_module.
            (SwitchCaps): Call initialize_module.
            (SwitchLEDs): Call initialize_module.
            (M2EXPORT): Remove initialization code.

    (cherry picked from commit cf4dcfa6727b89362494bd49e2a28ebd10d767ce)

    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>


More information about the Gcc-bugs mailing list