diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2023-09-29 17:18:16 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2023-09-29 17:18:16 +0100 |
commit | 5f2408712a4e3994ad903c2f72af19c5a473ef5d (patch) | |
tree | d2b7758a72547e03abff9957f8b363e8f9f81dee /gcc/tree-dfa.h | |
parent | 0f184b4141e9d285c19b3a3d02bffa45bc0d8f07 (diff) | |
download | gcc-5f2408712a4e3994ad903c2f72af19c5a473ef5d.zip gcc-5f2408712a4e3994ad903c2f72af19c5a473ef5d.tar.gz gcc-5f2408712a4e3994ad903c2f72af19c5a473ef5d.tar.bz2 |
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>
Diffstat (limited to 'gcc/tree-dfa.h')
0 files changed, 0 insertions, 0 deletions