https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117555
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:89761f1f03565468eb3b15259f6ad42af0cfe198 commit r14-11019-g89761f1f03565468eb3b15259f6ad42af0cfe198 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Mon Dec 2 14:34:32 2024 +0000 [PATCH] 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. (cherry picked from commit e77fd9aa89c210db6006fcefb03d80bae0fae851) Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>