gcc/libgm2
Gaius Mulley 3a121c06f3 PR-108404 M2RTS_Halt fails with a segv
PR-108404 occurs because the C prototype does not match the Modula-2
procedure M2RTS_Halt.  This patch provides a new procedure M2RTS_HaltC
which avoids the C/C++ code from having to fabricate a Modula-2 string.

gcc/m2/ChangeLog:

	* gm2-libs-iso/M2RTS.def (Halt): Parameter file renamed to filename.
	(HaltC): New procedure declaration.
	(ErrorMessage): Parameter file renamed to filename.
	* gm2-libs-iso/M2RTS.mod (Halt): Parameter file renamed to
	filename.
	(HaltC): New procedure implementation.
	(ErrorStringC): New procedure implementation.
	(ErrorMessageC): New procedure implementation.
	* gm2-libs/M2RTS.def (Halt): Parameter file renamed to filename.
	(HaltC): New procedure declaration.
	(ErrorMessage): Parameter file renamed to filename.
	* gm2-libs/M2RTS.mod (Halt): Parameter file renamed to filename.
	(HaltC): New procedure implementation.
	(ErrorStringC): New procedure implementation.
	(ErrorMessageC): New procedure implementation.

libgm2/ChangeLog:

	* libm2iso/RTco.cc (_M2_RTco_fini): Call M2RTS_HaltC.
	(newSem): Call M2RTS_HaltC.
	(currentThread): Call M2RTS_HaltC.
	(never): Call M2RTS_HaltC.
	(defined): Call M2RTS_HaltC.
	(initThread): Call M2RTS_HaltC.
	(RTco_transfer): Call M2RTS_HaltC.
	* libm2iso/m2rts.h (M2RTS_Halt): Provide parameter names.
	(M2RTS_HaltC): New procedure declaration.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-01-17 13:27:42 +00:00
..
libm2cor modula-2: Fix registration of modules via constructors [PR108183]. 2023-01-04 14:54:41 +00:00
libm2iso PR-108404 M2RTS_Halt fails with a segv 2023-01-17 13:27:42 +00:00
libm2log modula-2,libgm2: Add undefined, dynamic_lookup to m2 libs links. 2022-12-31 16:16:30 +00:00
libm2min modula-2,libgm2: Add undefined, dynamic_lookup to m2 libs links. 2022-12-31 16:16:30 +00:00
libm2pim modula-2: Fix registration of modules via constructors [PR108183]. 2023-01-04 14:54:41 +00:00
aclocal.m4
autogen.sh
ChangeLog Daily bump. 2023-01-07 00:17:28 +00:00
config.h.in
configure PR-108294 soname bump for modula2 runtime libraries. 2023-01-06 04:50:09 +00:00
configure.ac PR-108294 soname bump for modula2 runtime libraries. 2023-01-06 04:50:09 +00:00
Makefile.am
Makefile.in