PR modula2/110779 SysClock can not read the clock
This patch completes the implementation of the ISO module
SysClock.mod. Three new testcases are provided. wrapclock.{cc,def}
are new support files providing access to clock_settime, clock_gettime
and glibc timezone variables.
gcc/m2/ChangeLog:
PR modula2/110779
* gm2-libs-iso/SysClock.mod: Re-implement using wrapclock.
* gm2-libs-iso/wrapclock.def: New file.
libgm2/ChangeLog:
PR modula2/110779
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac (GM2_CHECK_LIB): Check for clock_gettime
and clock_settime.
* libm2iso/Makefile.am (M2DEFS): Add wrapclock.def.
* libm2iso/Makefile.in: Regenerate.
* libm2iso/wraptime.cc: Replace HAVE_TIMEVAL with
HAVE_STRUCT_TIMEVAL.
* libm2iso/wrapclock.cc: New file.
gcc/testsuite/ChangeLog:
PR modula2/110779
* gm2/iso/run/pass/m2date.mod: New test.
* gm2/iso/run/pass/testclock.mod: New test.
* gm2/iso/run/pass/testclock2.mod: New test.
Signed-off-by:
Gaius Mulley <gaiusmod2@gmail.com>
Showing
- gcc/m2/gm2-libs-iso/SysClock.mod 156 additions, 100 deletionsgcc/m2/gm2-libs-iso/SysClock.mod
- gcc/m2/gm2-libs-iso/wrapclock.def 125 additions, 0 deletionsgcc/m2/gm2-libs-iso/wrapclock.def
- gcc/testsuite/gm2/iso/run/pass/m2date.mod 101 additions, 0 deletionsgcc/testsuite/gm2/iso/run/pass/m2date.mod
- gcc/testsuite/gm2/iso/run/pass/testclock.mod 15 additions, 0 deletionsgcc/testsuite/gm2/iso/run/pass/testclock.mod
- gcc/testsuite/gm2/iso/run/pass/testclock2.mod 22 additions, 0 deletionsgcc/testsuite/gm2/iso/run/pass/testclock2.mod
- libgm2/config.h.in 9 additions, 0 deletionslibgm2/config.h.in
- libgm2/configure 147 additions, 0 deletionslibgm2/configure
- libgm2/configure.ac 3 additions, 1 deletionlibgm2/configure.ac
- libgm2/libm2iso/Makefile.am 3 additions, 3 deletionslibgm2/libm2iso/Makefile.am
- libgm2/libm2iso/Makefile.in 6 additions, 5 deletionslibgm2/libm2iso/Makefile.in
- libgm2/libm2iso/wrapclock.cc 220 additions, 0 deletionslibgm2/libm2iso/wrapclock.cc
- libgm2/libm2iso/wraptime.cc 5 additions, 4 deletionslibgm2/libm2iso/wraptime.cc
Loading
Please register or sign in to comment