gcc/libgm2/libm2iso
Gaius Mulley 5f2408712a modula2: iso library SysClock.mod and wrapclock.cc fixes.
This patch corrects the C equivalent of m2 LONGINT parameters
in wrapclock.cc and corrects the SysClock.mod module.
wrapclock.cc uses a typedef long long int longint_t to match
m2 LONGINT (rather than unsigned long).  These fixes
prevent calls to SysClock hanging spinning on an (incorrect)
large day count from the epoch.

gcc/m2/ChangeLog:

	* gm2-compiler/M2Quads.mod (EndBuildFor): Improve
	block comments.
	* gm2-libs-iso/SysClock.mod (ExtractDate): Replace
	testDays with yearOfDays.  New local variable monthOfDays.

libgm2/ChangeLog:

	* libm2iso/wrapclock.cc (longint_t): New declaration.
	(GetTimespec): Replace types for sec and nano with
	longint_t.
	(SetTimespec): Replace types for sec and nano with
	longint_t.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-09-29 17:18:16 +01:00
..
ChanConsts.h
ErrnoCategory.cc PR 109125 Modula2 SIGBUS in m2pim_ldtoa_ldtoa 2023-03-14 19:52:11 +00:00
m2rts.h PR 107630 runtime libs should be self-contained 2023-03-16 20:34:32 +00:00
Makefile.am PR 108143/modula2 LONGREAL and powerpc64le-linux 2023-09-19 19:23:03 +01:00
Makefile.in PR 108143/modula2 LONGREAL and powerpc64le-linux 2023-09-19 19:23:03 +01:00
RTco.cc Replace bool as boolean instead of int in libgm2 2023-05-13 15:49:50 +01:00
wrapclock.cc modula2: iso library SysClock.mod and wrapclock.cc fixes. 2023-09-29 17:18:16 +01:00
wrapsock.c PR 109125 Modula2 SIGBUS in m2pim_ldtoa_ldtoa 2023-03-14 19:52:11 +00:00
wraptime.cc PR modula2/110779 SysClock can not read the clock 2023-08-05 17:35:12 +01:00