Fix build warnings noreturn M2RTS and fix calls to RegisterModule [PR108956]
commit62ed1066196c81ab1fad13b2cc5ebbfe887138f9
authorGaius Mulley <gaiusmod2@gmail.com>
Tue, 28 Feb 2023 15:35:12 +0000 (28 15:35 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Tue, 28 Feb 2023 15:35:12 +0000 (28 15:35 +0000)
tree371feb96064118b134a5f5b7a037465e1421669f
parentd918c3a221434521f90cc9b63d5d87f5129e9231
Fix build warnings noreturn M2RTS and fix calls to RegisterModule [PR108956]

mc needs a fix to optionally suppress the generation of the noreturn
attribute when building M2RTS.  All the hand built C++ modules calling
RegisterModule must supply the library name.  These changes require
the boot strap tools mc and pge to be rebuilt.

gcc/m2/ChangeLog:

PR modula2/108956
* Make-lang.in (m2/gm2-libs-boot/M2RTS.o): New specific rule to
add the --suppress-noreturn option.
* Make-maintainer.in (m2/gm2-ppg-boot/$(SRC_PREFIX)M2RTS.o): New
specific rule to add the --suppress-noreturn option.
(m2/gm2-pg-boot/$(SRC_PREFIX)M2RTS.o): New
specific rule to add the --suppress-noreturn option.
(m2/gm2-pg-boot/$(SRC_PREFIX)%.o): Add missing $(srcdir).
(m2/gm2-pge-boot/$(SRC_PREFIX)M2RTS.o): New
specific rule to add the --suppress-noreturn option.
(m2/gm2-pge-boot/$(SRC_PREFIX)%.o): Add missing $(srcdir).
* gm2-libs-ch/UnixArgs.cc (LIBNAME): New define.
(_M2_UnixArgs_ctor): Add LIBNAME parameter to RegisterModule.
* gm2-libs-ch/dtoa.cc (LIBNAME): New define.
(_M2_dtoa_ctor): Add LIBNAME parameter to RegisterModule.
* gm2-libs-ch/ldtoa.cc (LIBNAME): New define.
(_M2_ldtoa_ctor): Add LIBNAME parameter to RegisterModule.
* pge-boot/m2rts.h (M2RTS_RegisterModule): Add libname
parameter.
* gm2-libs-ch/m2rts.h (M2RTS_RegisterModule): Add libname
parameter.
* mc-boot-ch/GUnixArgs.cc (_M2_UnixArgs_ctor): Remove.
* pge-boot/GUnixArgs.cc (LIBNAME): New define.
(_M2_UnixArgs_ctor): Add LIBNAME parameter to RegisterModule.
* gm2-libs/RTint.def (AttachVector): Rename parameter.
* mc-boot/GDynamicStrings.c: Rebuilt.
* mc-boot/GFIO.c: Rebuilt.
* mc-boot/GIndexing.c: Rebuilt.
* mc-boot/GM2EXCEPTION.c: Rebuilt.
* mc-boot/GPushBackInput.c: Rebuilt.
* mc-boot/GRTExceptions.c: Rebuilt.
* mc-boot/GRTint.c: Rebuilt.
* mc-boot/GRTint.h: Rebuilt.
* mc-boot/GStdIO.c: Rebuilt.
* mc-boot/GStringConvert.c: Rebuilt.
* mc-boot/GSysStorage.c: Rebuilt.
* mc-boot/Gdecl.c: Rebuilt.
* mc-boot/Gkeyc.c: Rebuilt.
* mc-boot/GmcComment.c: Rebuilt.
* mc-boot/GmcComp.c: Rebuilt.
* mc-boot/GmcDebug.c: Rebuilt.
* mc-boot/GmcMetaError.c: Rebuilt.
* mc-boot/GmcOptions.c: Rebuilt.
* mc-boot/GmcOptions.h: Rebuilt.
* mc-boot/GmcStack.c: Rebuilt.
* mc-boot/GnameKey.c: Rebuilt.
* mc-boot/GsymbolKey.c: Rebuilt.
* mc/decl.mod:: Rebuilt.
* mc/mcOptions.def: Rebuilt.
* mc/mcOptions.mod:: Rebuilt.
* pge-boot/GDynamicStrings.c: Rebuilt.
* pge-boot/GFIO.c: Rebuilt.
* pge-boot/GIndexing.c: Rebuilt.
* pge-boot/GM2EXCEPTION.c: Rebuilt.
* pge-boot/GM2RTS.c: Rebuilt.
* pge-boot/GNameKey.c: Rebuilt.
* pge-boot/GPushBackInput.c: Rebuilt.
* pge-boot/GRTExceptions.c: Rebuilt.
* pge-boot/GStdIO.c: Rebuilt.
* pge-boot/GSymbolKey.c: Rebuilt.
* pge-boot/GSysStorage.c: Rebuilt.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
46 files changed:
gcc/m2/Make-lang.in
gcc/m2/Make-maintainer.in
gcc/m2/gm2-libs-ch/UnixArgs.cc
gcc/m2/gm2-libs-ch/dtoa.cc
gcc/m2/gm2-libs-ch/ldtoa.cc
gcc/m2/gm2-libs-ch/m2rts.h
gcc/m2/gm2-libs/RTint.def
gcc/m2/mc-boot-ch/GUnixArgs.cc
gcc/m2/mc-boot/GDynamicStrings.c
gcc/m2/mc-boot/GFIO.c
gcc/m2/mc-boot/GIndexing.c
gcc/m2/mc-boot/GM2EXCEPTION.c
gcc/m2/mc-boot/GPushBackInput.c
gcc/m2/mc-boot/GRTExceptions.c
gcc/m2/mc-boot/GRTint.c
gcc/m2/mc-boot/GRTint.h
gcc/m2/mc-boot/GStdIO.c
gcc/m2/mc-boot/GStringConvert.c
gcc/m2/mc-boot/GSysStorage.c
gcc/m2/mc-boot/Gdecl.c
gcc/m2/mc-boot/Gkeyc.c
gcc/m2/mc-boot/GmcComment.c
gcc/m2/mc-boot/GmcComp.c
gcc/m2/mc-boot/GmcDebug.c
gcc/m2/mc-boot/GmcMetaError.c
gcc/m2/mc-boot/GmcOptions.c
gcc/m2/mc-boot/GmcOptions.h
gcc/m2/mc-boot/GmcStack.c
gcc/m2/mc-boot/GnameKey.c
gcc/m2/mc-boot/GsymbolKey.c
gcc/m2/mc/decl.mod
gcc/m2/mc/mcOptions.def
gcc/m2/mc/mcOptions.mod
gcc/m2/pge-boot/GDynamicStrings.c
gcc/m2/pge-boot/GFIO.c
gcc/m2/pge-boot/GIndexing.c
gcc/m2/pge-boot/GM2EXCEPTION.c
gcc/m2/pge-boot/GM2RTS.c
gcc/m2/pge-boot/GNameKey.c
gcc/m2/pge-boot/GPushBackInput.c
gcc/m2/pge-boot/GRTExceptions.c
gcc/m2/pge-boot/GStdIO.c
gcc/m2/pge-boot/GSymbolKey.c
gcc/m2/pge-boot/GSysStorage.c
gcc/m2/pge-boot/GUnixArgs.cc
gcc/m2/pge-boot/m2rts.h