https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110779
--- Comment #9 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #8 from Gaius Mulley <gaius at gcc dot gnu.org> --- > Created attachment 55703 > --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55703&action=edit > Proposed fix (addendum) > > Here is a patch which tests for all the functions and structs in wrapclock.cc. That patch does restore i386-pc-solaris2.11 bootstrap, thanks. Testsuite results are good, with two exceptions: for 32-bit compilation (only, 64-bit is fine), two tests reliably time out at all optimization levels: WARNING: gm2/iso/run/pass/m2date.mod execution, -O program timed out. WARNING: gm2/iso/run/pass/testclock2.mod execution, -O program timed out. Running them under truss shows that the last system call each is 5032: clock_settime(3, 0x080975F0) Err#1 EPERM [sys_time] Running testclock2.mod under gdb shows Thread 2 received signal SIGINT, Interrupt. [Switching to Thread 1 (LWP 1)] 0x08064ad4 in daysInMonth (year=42582828, month=7) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysClock.mod:225 225 BEGIN (gdb) bt #0 0x08064ad4 in daysInMonth (year=42582828, month=7) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysClock.mod:225 #1 0x08065152 in daysInYear (year=42582828, month=<optimized out>, day=<optimized out>) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysClock.mod:132 #2 ExtractDate (day=@0x808748c: 0, month=@0x8087484: 0, year=@0x8087480: 0, days=53508608997914) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysClock.mod:152 #3 m2iso_SysClock_GetClock (userData=...) at /vol/gcc/src/hg/master/local/libgm2/libm2iso/../../gcc/m2/gm2-libs-iso/SysClock.mod:204 #4 0x0805f652 in _M2_testclock2_init () #5 0x08068d7a in m2pim_M2Dependent_ConstructModules ( applicationmodule=0x805c2b4, libname=0x805c2bf, overrideliborder=0x805c2d8, argc=1, argv=0xfeffdafc, envp=0xfeffdb04) at /vol/gcc/src/hg/master/local/libgm2/libm2pim/../../gcc/m2/gm2-libs/M2Dependent.mod:809 #6 0x0805fca9 in _M2_init () #7 0x0805fcee in main () That year value seems very strange.