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

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

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

commit r15-5331-ge77fd9aa89c210db6006fcefb03d80bae0fae851
Author: Gaius Mulley <gaiusm...@gmail.com>
Date:   Sat Nov 16 02:32:56 2024 +0000

    PR modula2/117555: Add missing return statement after raise

    This patch adds missing return statements after a call to RAISE.  Four
    of the modules in libgm2 have procedure functions with missing return
    statements.  These errors were exposed after the reimplementation of
    parameter declaration patch and triggered by -Wreturn-type.  The patch
    also adds exit statements to the M2RTS noreturn functions.

    gcc/m2/ChangeLog:

            PR modula2/117555
            * gm2-libs-iso/EXCEPTIONS.mod (CurrentNumber): Add return
            statement.
            * gm2-libs-iso/IOChan.mod (ReadResult): Ditto.
            (CurrentFlags): Ditto.
            (DeviceError): Ditto.
            * gm2-libs-iso/IOLink.mod (DeviceTablePtrValue): Ditto.
            * gm2-libs-iso/LongConv.mod (ValueReal): Ditto.
            * gm2-libs/M2RTS.mod (Halt): Add noreturn attribute.
            Add exit (1).
            (HaltC): Add exit (1).
            * pge-boot/GM2RTS.cc (M2RTS_Halt): Add exit (1).
            (M2RTS_HaltC): Ditto.

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

Reply via email to