middle-end/112487 - inline and parameter mismatch
[official-gcc.git] / libgm2 / ChangeLog
blob7fda5997edf774ffa3521ba5ec3aa8561cbf1169
1 2023-10-27  Gaius Mulley  <gaiusmod2@gmail.com>
3         PR modula2/112110
4         * libm2iso/wrapclock.cc (timezone): Return 0 if unable
5         to get the timezone from the tm struct.
7 2023-10-27  Gaius Mulley  <gaiusmod2@gmail.com>
9         PR modula2/111530
10         * Makefile.in: Regenerate.
11         * aclocal.m4: Regenerate.
12         * config.h.in: Regenerate.
13         * configure: Regenerate.
14         * configure.ac (AC_CHECK_HEADERS): Include getopt.h.
15         (GM2_CHECK_LIB): getopt_long check.
16         (GM2_CHECK_LIB): getopt_long_only check.
17         * libm2cor/Makefile.in: Regenerate.
18         * libm2iso/Makefile.in: Regenerate.
19         * libm2log/Makefile.in: Regenerate.
20         * libm2min/Makefile.in: Regenerate.
21         * libm2pim/Makefile.in: Regenerate.
22         * libm2pim/cgetopt.cc: Re-write using conditional on configure
23         and long function code from libiberty/getopt.c.
25 2023-10-25  Gaius Mulley  <gaiusmod2@gmail.com>
27         PR modula2/111955
28         * libm2pim/wrapc.cc (isnan): Export new function.
29         (isnanf): Export new function.
30         (isnanl): Export new function.
32 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
34         * Makefile.am: Handle Darwin rpaths.
35         * Makefile.in: Regenerate.
36         * aclocal.m4: Regenerate.
37         * configure: Regenerate.
38         * configure.ac: Handle Darwin rpaths.
39         * libm2cor/Makefile.am: Handle Darwin rpaths.
40         * libm2cor/Makefile.in: Regenerate.
41         * libm2iso/Makefile.am: Handle Darwin rpaths.
42         * libm2iso/Makefile.in: Regenerate.
43         * libm2log/Makefile.am: Handle Darwin rpaths.
44         * libm2log/Makefile.in: Regenerate.
45         * libm2min/Makefile.am: Handle Darwin rpaths.
46         * libm2min/Makefile.in: Regenerate.
47         * libm2pim/Makefile.am: Handle Darwin rpaths.
48         * libm2pim/Makefile.in: Regenerate.
50 2023-09-29  Gaius Mulley  <gaiusmod2@gmail.com>
52         * libm2iso/wrapclock.cc (longint_t): New declaration.
53         (GetTimespec): Replace types for sec and nano with
54         longint_t.
55         (SetTimespec): Replace types for sec and nano with
56         longint_t.
58 2023-09-19  Gaius Mulley  <gaiusmod2@gmail.com>
60         * Makefile.am (TARGET_LONGDOUBLE_ABI): New variable set to
61         -mabi=ieeelongdouble if the target is powerpc64le.
62         (AM_MAKEFLAGS): Append TARGET_LONGDOUBLE_ABI.
63         * Makefile.in: Rebuild.
64         * libm2cor/Makefile.am (AM_MAKEFLAGS): Add CFLAGS_LONGDOUBLE and
65         TARGET_LONGDOUBLE_ABI.
66         (libm2cor_la_CFLAGS): Add TARGET_LONGDOUBLE_ABI.
67         (libm2cor_la_M2FLAGS): Add TARGET_LONGDOUBLE_ABI.
68         * libm2cor/Makefile.in: Rebuild.
69         * libm2iso/Makefile.am (AM_MAKEFLAGS): Add CFLAGS_LONGDOUBLE and
70         TARGET_LONGDOUBLE_ABI.
71         (libm2iso_la_CFLAGS): Add TARGET_LONGDOUBLE_ABI.
72         (libm2iso_la_M2FLAGS): Add TARGET_LONGDOUBLE_ABI.
73         * libm2iso/Makefile.in: Rebuild.
74         * libm2log/Makefile.am (AM_MAKEFLAGS): Add CFLAGS_LONGDOUBLE and
75         TARGET_LONGDOUBLE_ABI.
76         (libm2log_la_CFLAGS): Add TARGET_LONGDOUBLE_ABI.
77         (libm2log_la_M2FLAGS): Add TARGET_LONGDOUBLE_ABI.
78         * libm2log/Makefile.in: Rebuild.
79         * libm2min/Makefile.am (AM_MAKEFLAGS): Add CFLAGS_LONGDOUBLE and
80         TARGET_LONGDOUBLE_ABI.
81         (libm2min_la_CFLAGS): Add TARGET_LONGDOUBLE_ABI.
82         (libm2min_la_M2FLAGS): Add TARGET_LONGDOUBLE_ABI.
83         * libm2min/Makefile.in: Rebuild.
84         * libm2pim/Makefile.am (AM_MAKEFLAGS): Add CFLAGS_LONGDOUBLE and
85         TARGET_LONGDOUBLE_ABI.
86         (libm2pim_la_CFLAGS): Add TARGET_LONGDOUBLE_ABI.
87         (libm2pim_la_M2FLAGS): Add TARGET_LONGDOUBLE_ABI.
88         * libm2pim/Makefile.in: Rebuild.
90 2023-09-13  Gaius Mulley  <gaiusmod2@gmail.com>
92         * libm2cor/Makefile.am (libm2cor_la_M2FLAGS): Add
93         -Wcase-enum.
94         * libm2cor/Makefile.in: Regenerate.
95         * libm2iso/Makefile.am (libm2iso_la_M2FLAGS): Add
96         -Wcase-enum.
97         * libm2iso/Makefile.in: Regenerate.
98         * libm2log/Makefile.am (libm2log_la_M2FLAGS): Add
99         -Wcase-enum.
100         * libm2log/Makefile.in: Regenerate.
101         * libm2pim/Makefile.am (libm2pim_la_M2FLAGS): Add
102         -Wcase-enum.
103         * libm2pim/Makefile.in: Regenerate.
105 2023-08-12  Gaius Mulley  <gaiusmod2@gmail.com>
107         PR modula2/110779
108         * configure: Regenerate.
109         * configure.ac: Provide special case test for Darwin cross
110         configuration.
111         (GLIBCXX_CONFIGURE): New statement.
112         (GLIBCXX_CHECK_GETTIMEOFDAY): New statement.
113         (GLIBCXX_ENABLE_LIBSTDCXX_TIME): New statement.
114         * libm2iso/wrapclock.cc: New sys/time.h conditional include.
115         (sys/syscall.h): Conditional include.
116         (unistd.h): Conditional include.
117         (GetTimeRealtime): Re-implement.
118         (SetTimeRealtime): Re-implement.
119         (timezone): Re-implement.
120         (istimezone): New function.
121         (daylight): Re-implement.
122         (isdst): Re-implement.
123         (tzname): Re-implement.
125 2023-08-09  Gaius Mulley  <gaiusmod2@gmail.com>
127         PR modula2/110779
128         * config.h.in: Regenerate.
129         * configure: Regenerate.
130         * configure.ac (AC_CACHE_CHECK): Check for tm_gmtoff field in
131         struct tm.
132         (GM2_CHECK_LIB): Check for daylight, timezone and tzname.
133         * libm2iso/wrapclock.cc (timezone): Guard against absence of
134         struct tm and tm_gmtoff.
135         (daylight): Check for daylight.
136         (timezone): Check for timezone.
137         (isdst): Check for isdst.
138         (tzname): Check for tzname.
139         (GetTimeRealtime): Check for struct timespec.
140         (SetTimeRealtime): Check for struct timespec.
141         (InitTimespec): Check for struct timespec.
142         (KillTimespec): Check for struct timespec.
143         (SetTimespec): Check for struct timespec.
144         (GetTimespec): Check for struct timespec.
146 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
148         * configure: Regenerate.
150 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
152         * configure: Regenerate.
154 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
156         * configure: Regenerate.
158 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
160         * configure: Regenerate.
162 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
164         * configure: Regenerate.
166 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
168         * configure: Regenerate.
170 2023-08-05  Gaius Mulley  <gaiusmod2@gmail.com>
172         PR modula2/110779
173         * config.h.in: Regenerate.
174         * configure: Regenerate.
175         * configure.ac (GM2_CHECK_LIB): Check for clock_gettime
176         and clock_settime.
177         * libm2iso/Makefile.am (M2DEFS): Add wrapclock.def.
178         * libm2iso/Makefile.in: Regenerate.
179         * libm2iso/wraptime.cc: Replace HAVE_TIMEVAL with
180         HAVE_STRUCT_TIMEVAL.
181         * libm2iso/wrapclock.cc: New file.
183 2023-06-02  Thomas Schwinge  <thomas@codesourcery.com>
185         * configure.ac (PERL): Remove.
186         * configure: Regenerate.
187         * Makefile.in: Likewise.
188         * libm2cor/Makefile.in: Likewise.
189         * libm2iso/Makefile.in: Likewise.
190         * libm2log/Makefile.in: Likewise.
191         * libm2min/Makefile.in: Likewise.
192         * libm2pim/Makefile.in: Likewise.
194 2023-05-16  Gaius Mulley  <gaiusmod2@gmail.com>
196         PR modula2/109879
197         * Makefile.in: Regenerate.
198         * aclocal.m4: Regenerate.
199         * libm2cor/Makefile.in: Regenerate.
200         * libm2iso/Makefile.am (M2DEFS): Add TextUtil.def.
201         (M2MODS): Add TextUtil.mod.
202         * libm2iso/Makefile.in: Regenerate.
203         * libm2log/Makefile.in: Regenerate.
204         * libm2min/Makefile.in: Regenerate.
205         * libm2pim/Makefile.in: Regenerate.
207 2023-05-16  Gaius Mulley  <gaiusmod2@gmail.com>
209         PR modula2/108344
210         * libm2cor/KeyBoardLEDs.cc (initialize_module): New function.
211         (SwitchScroll): Call initialize_module.
212         (SwitchNum): Call initialize_module.
213         (SwitchCaps): Call initialize_module.
214         (SwitchLEDs): Call initialize_module.
215         (M2EXPORT): Remove initialization code.
217 2023-05-13  Gaius Mulley  <gaiusmod2@gmail.com>
219         * libm2cor/KeyBoardLEDs.cc (TRUE): Remove.
220         (FALSE): Remove.
221         (init): Replace TRUE with true.
222         * libm2iso/RTco.cc (TRUE): Remove.
223         (FALSE): Remove.
224         (initSem): Replace int with bool.
225         (init): Replace FALSE with false.
226         * libm2pim/sckt.cc (TRUE): Remove.
227         (FALSE): Remove.
228         * libm2pim/wrapc.cc: Replace TRUE with true
229         and FALSE with false.
230         (FALSE): Remove.
231         (TRUE): Remove.
233 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
235         * autogen.sh: Remove.
237 2023-05-08  Thomas Schwinge  <thomas@codesourcery.com>
239         * autogen.sh: For 'aclocal', 'autoreconf', remove '-I .',
240         add '-I ..'.
241         * Makefile.am (ACLOCAL_AMFLAGS): Remove '-I .'.
242         * libm2cor/Makefile.am (ACLOCAL_AMFLAGS): Likewise.
243         * libm2iso/Makefile.am (ACLOCAL_AMFLAGS): Likewise.
244         * libm2log/Makefile.am (ACLOCAL_AMFLAGS): Likewise.
245         * libm2min/Makefile.am (ACLOCAL_AMFLAGS): Likewise.
246         * libm2pim/Makefile.am (ACLOCAL_AMFLAGS): Likewise.
247         * aclocal.m4: Regenerate.
248         * Makefile.in: Likewise.
249         * libm2cor/Makefile.in: Likewise.
250         * libm2iso/Makefile.in: Likewise.
251         * libm2log/Makefile.in: Likewise.
252         * libm2min/Makefile.in: Likewise.
253         * libm2pim/Makefile.in: Likewise.
255 2023-03-22  Gaius Mulley  <gaiusmod2@gmail.com>
257         * libm2pim/Makefile.am (M2DEFS): Remove M2LINK.def.
258         * libm2pim/Makefile.in: Rebuild.
260 2023-03-16  Gaius Mulley  <gaiusmod2@gmail.com>
262         * libm2cor/Makefile.am: Remove
263         * libm2cor/Makefile.in: Rebuild.
264         * libm2iso/RTco.cc (newSem): Halt parameters reordered.
265         (currentThread): Ditto.
266         (never): Ditto.
267         (defined): Ditto.
268         (initThread): Ditto.
269         * libm2iso/m2rts.h (m2iso_M2RTS_HaltC): Ditto.
271 2023-03-15  Gaius Mulley  <gaiusmod2@gmail.com>
273         PR modula2/109125
274         * libm2pim/dtoa.cc (TRUE): Remove.
275         (FALSE): Remove.  Replace int with bool.
276         * libm2pim/ldtoa.cc (TRUE): Remove.
277         (FALSE): Remove.  Replace int with bool.
279 2023-03-14  Gaius Mulley  <gaiusmod2@gmail.com>
281         PR modula2/109125
282         * libm2iso/ErrnoCategory.cc (FALSE): Remove.
283         (TRUE): Remove.
284         * libm2iso/wrapsock.c (TRUE): Remove.
285         (FALSE): Remove.
286         * libm2iso/wraptime.cc (TRUE): Remove.
287         (FALSE): Remove.
288         * libm2pim/cgetopt.cc: Replace int for bool for every BOOLEAN
289         parameter in the definition module.
290         * libm2pim/dtoa.cc: Ditto.
291         * libm2pim/ldtoa.cc: Ditto.
292         * libm2pim/termios.cc: Ditto.
293         (doSetUnset): Replace int for bool.
295 2023-02-27  Gaius Mulley  <gaiusmod2@gmail.com>
297         PR modula2/108944
298         * libm2pim/sckt.cc (getLocalIP): Correct parameter order.
300 2023-02-25  Gaius Mulley  <gaiusmod2@gmail.com>
302         PR modula2/108261
303         * libm2cor/KeyBoardLEDs.cc (EXPORT): New define.
304         (M2EXPORT): New define.
305         (M2LIBNAME): New define.
306         (KeyBoardLEDs_SwitchScroll): EXPORT.
307         (KeyBoardLEDs_SwitchNum): EXPORT.
308         (KeyBoardLEDs_SwitchCaps): EXPORT.
309         (KeyBoardLEDs_SwitchLeds): EXPORT.
310         (_M2_KeyBoardLEDs_init): M2EXPORT.
311         (_M2_KeyBoardLEDs_finish): M2EXPORT.
312         (_M2_KeyBoardLEDs_dep): M2EXPORT.
313         * libm2cor/Makefile.am (libm2cor_la_M2FLAGS): Define
314         path names.
315         * libm2cor/Makefile.in: Rebuild.
316         * libm2iso/ErrnoCategory.cc (EXPORT): New define.
317         (M2EXPORT): New define.
318         (M2LIBNAME): New define.
319         (ErrnoCategory_IsErrnoHard): EXPORT.
320         (ErrnoCategory_IsErrnoSoft): EXPORT.
321         (ErrnoCategory_UnAvailable): EXPORT.
322         (ErrnoCategory_GetOpenResults): EXPORT.
323         (_M2_ErrnoCategory_init): M2EXPORT.
324         (_M2_ErrnoCategory_fini): M2EXPORT.
325         (_M2_ErrnoCategory_dep): M2EXPORT.
326         (_M2_ErrnoCategory_ctor): M2EXPORT.
327         * libm2iso/Makefile.am (libm2iso_la_M2FLAGS): Define
328         path names.
329         * libm2iso/Makefile.in: Rebuild.
330         * libm2iso/RTco.cc (EXPORT): New define.
331         (M2EXPORT): New define.
332         (M2LIBNAME): New define.
333         (newSem): Add module libname prefix to HaltC.
334         (currentThread): Remove variable and replace with a function.
335         (never): Add module libname prefix to HaltC.
336         (initThread): Add module libname prefix to HaltC.
337         * libm2iso/m2rts.h (str): New define.
338         (M2RTS_RequestDependant): Change to the mangled name equivalent.
339         (M2RTS_RegisterModule): Change to the mangled name equivalent.
340         (m2iso_M2RTS_RequestDependant): Add libname parameter.
341         (m2iso_M2RTS_RegisterModule): Add libname parameter.
342         (m2pim_M2RTS_RegisterModule): Add libname parameter.
343         (_M2_M2RTS_init): Rename this...
344         (m2iso_M2_M2RTS_init): ...to this.
345         (M2RTS_ConstructModules): Change to the mangled name equivalent.
346         (M2RTS_Terminate): Change to the mangled name equivalent.
347         (M2RTS_DeconstructModules): Change to the mangled name equivalent.
348         (m2iso_M2RTS_ConstructModules): Add libname parameter.
349         (m2iso_M2RTS_Terminate): Add libname parameter.
350         (m2iso_M2RTS_DeconstructModules): Add libname parameter.
351         (M2RTS_HaltC): Rename this...
352         (m2iso_M2RTS_HaltC): ...to this.
353         * libm2iso/wrapsock.c (EXPORT): New define.
354         (IMPORT): New define.
355         (M2EXPORT): New define.
356         (M2LIBNAME): New define.
357         (m2iso_M2RTS_RequestDependant): Add prototype.
358         (wrapsock_clientOpen): EXPORT.
359         (wrapsock_clientOpenIP): EXPORT.
360         (wrapsock_getClientPortNo): EXPORT.
361         (wrapsock_getClientHostname): EXPORT.
362         (wrapsock_getClientSocketFd): EXPORT.
363         (wrapsock_getClientIP): EXPORT.
364         (wrapsock_getPushBackChar): EXPORT.
365         (wrapsock_setPushBackChar): EXPORT.
366         (wrapsock_getSizeOfClientInfo): EXPORT.
367         (_M2_wrapsock_init): M2EXPORT.
368         (_M2_wrapsock_fini): M2EXPORT.
369         (ctor): M2EXPORT.  New function.
370         * libm2iso/wraptime.c: Rename to...
371         * libm2iso/wraptime.cc: ...this.
372         (EXPORT): New define.
373         (M2EXPORT): New define.
374         (M2LIBNAME): New define.
375         (wraptime_InitTimeval): EXPORT.
376         (wraptime_KillTimeval): EXPORT.
377         (wraptime_InitTimezone): EXPORT.
378         (wraptime_KillTimezone): EXPORT.
379         (wraptime_InitTM): EXPORT.
380         (wraptime_KillTM): EXPORT.
381         (wraptime_gettimeofday): EXPORT.
382         (wraptime_settimeofday): EXPORT.
383         (wraptime_GetFractions): EXPORT.
384         (wraptime_localtime_r): EXPORT.
385         (wraptime_GetYear): EXPORT.
386         (wraptime_GetMonth): EXPORT.
387         (wraptime_GetDay): EXPORT.
388         (wraptime_GetHour): EXPORT.
389         (wraptime_GetMinute): EXPORT.
390         (wraptime_GetSecond): EXPORT.
391         (wraptime_GetSummerTime): EXPORT.
392         (wraptime_GetDST): EXPORT.
393         (wraptime_SetTimezone): EXPORT.
394         (wraptime_SetTimeval): EXPORT.
395         (_M2_wraptime_init): M2EXPORT.
396         (_M2_wraptime_fini): M2EXPORT.
397         (ctor): M2EXPORT.  New function.
398         * libm2log/Makefile.am (libm2log_la_M2FLAGS): Define
399         path names.
400         * libm2log/Makefile.in:
401         * libm2min/Makefile.am (libm2min_la_M2FLAGS): Define
402         path names.
403         * libm2min/Makefile.in:
404         * libm2pim/Makefile.am (libm2pim_la_M2FLAGS): Define
405         path names.
406         * libm2pim/Makefile.in:
407         * libm2pim/Selective.cc (EXPORT): New define.
408         (M2EXPORT): New define.
409         (M2LIBNAME): New define.
410         (Selective_Select): EXPORT.
411         (Selective_InitTime): EXPORT.
412         (Selective_GetTime): EXPORT.
413         (Selective_SetTime): EXPORT.
414         (Selective_KillTime): EXPORT.
415         (Selective_InitSet): EXPORT.
416         (Selective_KillSet): EXPORT.
417         (Selective_FdZero): EXPORT.
418         (Selective_FdSet): EXPORT.
419         (Selective_FdClr): EXPORT.
420         (Selective_FdIsSet): EXPORT.
421         (Selective_GetTimeOfDay): EXPORT.
422         (Selective_MaxFdsPlusOne): EXPORT.
423         (Selective_WriteCharRaw): EXPORT.
424         (Selective_ReadCharRaw): EXPORT.
425         (_M2_Selective_init): M2EXPORT.
426         (_M2_Selective_fini): M2EXPORT.
427         (_M2_Selective_dep): M2EXPORT.
428         (_M2_Selective_ctor): M2EXPORT.
429         * libm2pim/SysExceptions.cc (EXPORT): New define.
430         (M2EXPORT): New define.
431         (M2LIBNAME): New define.
432         (SysExceptions_InitExceptionHandlers): EXPORT.
433         (_M2_SysExceptions_init): M2EXPORT.
434         (_M2_SysExceptions_fini): M2EXPORT.
435         (_M2_SysExceptions_dep): M2EXPORT.
436         (_M2_SysExceptions_ctor): M2EXPORT.
437         * libm2pim/UnixArgs.cc (EXPORT): New define.
438         (M2EXPORT): New define.
439         (M2LIBNAME): New define.
440         (UnixArgs_GetArgC): EXPORT.
441         (UnixArgs_GetArgV): EXPORT.
442         (UnixArgs_GetEnvV): EXPORT.
443         (_M2_UnixArgs_init): M2EXPORT.
444         (_M2_UnixArgs_fini): M2EXPORT.
445         (_M2_UnixArgs_dep): M2EXPORT.
446         (_M2_UnixArgs_ctor): M2EXPORT.
447         * libm2pim/cgetopt.cc (EXPORT): New define.
448         (M2EXPORT): New define.
449         (M2LIBNAME): New define.
450         (cgetopt_getopt): EXPORT.
451         (cgetopt_getopt_long): EXPORT.
452         (cgetopt_getopt_long_only): EXPORT.
453         (cgetopt_InitOptions): EXPORT.
454         (cgetopt_KillOptions): EXPORT.
455         (cgetopt_SetOption): EXPORT.
456         (cgetopt_GetLongOptionArray): EXPORT.
457         (_M2_cgetopt_init): M2EXPORT.
458         (_M2_cgetopt_fini): M2EXPORT.
459         (_M2_cgetopt_dep): M2EXPORT.
460         (_M2_cgetopt_ctor): M2EXPORT.
461         * libm2pim/dtoa.cc (EXPORT): New define.
462         (M2EXPORT): New define.
463         (M2LIBNAME): New define.
464         (dtoa_strtod): EXPORT.
465         (dtoa_calcmaxsig): EXPORT.
466         (dtoa_calcdecimal): EXPORT.
467         (dtoa_calcsign): EXPORT.
468         (dtoa_dtoa): EXPORT.
469         (_M2_dtoa_init): M2EXPORT.
470         (_M2_dtoa_fini): M2EXPORT.
471         (_M2_dtoa_dep): M2EXPORT.
472         (_M2_dtoa_ctor): M2EXPORT.
473         * libm2pim/errno.cc (EXPORT): New define.
474         (M2EXPORT): New define.
475         (M2LIBNAME): New define.
476         (errno_geterrno): EXPORT.
477         (_M2_errno_init): M2EXPORT.
478         (_M2_errno_fini): M2EXPORT.
479         (_M2_errno_dep): M2EXPORT.
480         (_M2_errno_ctor): M2EXPORT.
481         * libm2pim/ldtoa.cc (EXPORT): New define.
482         (IMPORT): New define.
483         (M2EXPORT): New define.
484         (M2LIBNAME): New define.
485         (dtoa_calcmaxsig): EXPORT.
486         (dtoa_calcdecimal): EXPORT.
487         (dtoa_calcsign): EXPORT.
488         (ldtoa_strtold): EXPORT.
489         (ldtoa_ldtoa): EXPORT.
490         (_M2_ldtoa_init): M2EXPORT.
491         (_M2_ldtoa_fini): M2EXPORT.
492         (_M2_ldtoa_dep): M2EXPORT.
493         (_M2_ldtoa_ctor): M2EXPORT.
494         * libm2pim/sckt.cc (EXPORT): New define.
495         (M2EXPORT): New define.
496         (M2LIBNAME): New define.
497         (tcpServerEstablishPort): EXPORT.
498         (tcpServerEstablish): EXPORT.
499         (tcpServerAccept): EXPORT.
500         (tcpServerPortNo): EXPORT.
501         (tcpServerSocketFd): EXPORT.
502         (getLocalIP): EXPORT.
503         (tcpServerIP): EXPORT.
504         (tcpServerClientIP): EXPORT.
505         (tcpServerClientPortNo): EXPORT.
506         (tcpClientSocket): EXPORT.
507         (tcpClientSocketIP): EXPORT.
508         (tcpClientConnect): EXPORT.
509         (tcpClientPortNo): EXPORT.
510         (tcpClientSocketFd): EXPORT.
511         (tcpClientIP): EXPORT.
512         (_M2_sckt_init): M2EXPORT.
513         (_M2_sckt_finish): M2EXPORT.
514         (_M2_sckt_dep): M2EXPORT.
515         (_M2_sckt_ctor): M2EXPORT.
516         * libm2pim/termios.cc (EXPORT): New define.
517         (M2EXPORT): New define.
518         (M2LIBNAME): New define.
519         (_M2_termios_init): M2EXPORT.
520         (_M2_termios_fini): M2EXPORT.
521         (_M2_termios_dep): M2EXPORT.
522         (_M2_termios_ctor): M2EXPORT.
523         * libm2pim/wrapc.c (EXPORT): New define.
524         (M2EXPORT): New define.
525         (M2LIBNAME): New define.
526         (wrapc_strtime): EXPORT.
527         (wrapc_filesize): EXPORT.
528         (wrapc_filemtime): EXPORT.
529         (wrapc_fileinode): EXPORT.
530         (wrapc_getrand): EXPORT.
531         (wrapc_getusername): EXPORT.
532         (wrapc_getnameuidgid): EXPORT.
533         (wrapc_signbit): EXPORT.
534         (wrapc_signbitl): EXPORT.
535         (wrapc_signbitf): EXPORT.
536         (wrapc_isfinite): EXPORT.
537         (wrapc_isfinitel): EXPORT.
538         (wrapc_isfinitef): EXPORT.
539         (_M2_wrapc_init): M2EXPORT.
540         (_M2_wrapc_fini): M2EXPORT.
541         (_M2_wrapc_ctor): M2EXPORT.
542         * libm2pim/wrapc.cc: New file.
544 2023-02-19  Gaius Mulley  <gaiusmod2@gmail.com>
546         PR testsuite/108835
547         * libm2iso/RTco.cc: Re-implementation using a single lock
548         mutex and inlined wait/signal implementation within
549         transfer.
551 2023-02-13  Gaius Mulley  <gaiusmod2@gmail.com>
553         * libm2iso/RTco.cc (tprintf): Replace definition.
555 2023-02-01  Gaius Mulley  <gaiusmod2@gmail.com>
557         PR modula2/108612
558         PR modula2/108551
559         * libm2cor/Makefile.am (libm2cor_la_M2FLAGS): Add -Wreturn-type
560         -fcase.
561         * libm2cor/Makefile.in: Rebuild.
562         * libm2iso/Makefile.am (libm2iso_la_M2FLAGS): Add -Wreturn-type
563         -fcase.
564         * libm2iso/Makefile.in: Rebuild.
565         * libm2log/Makefile.am (libm2log_la_M2FLAGS): Add -Wreturn-type
566         -fcase.
567         * libm2log/Makefile.in: Rebuild.
568         * libm2pim/Makefile.am (libm2pim_la_M2FLAGS): Add -Wreturn-type
569         -fcase.
570         * libm2pim/Makefile.in: Rebuild.
572 2023-01-31  Richard Biener  <rguenther@suse.de>
574         PR modula2/108462
575         * libm2cor/Makefile.am: Remove static lib install from
576         install-data-local.
577         * libm2iso/Makefile.am: Likewise.
578         * libm2log/Makefile.am: Likewise.
579         * libm2min/Makefile.am: Likewise.
580         * libm2pim/Makefile.am: Likewise.
581         * libm2cor/Makefile.in: Regenerate.
582         * libm2iso/Makefile.in: Likewise.
583         * libm2log/Makefile.in: Likewise.
584         * libm2min/Makefile.in: Likewise.
585         * libm2pim/Makefile.in: Likewise.
587 2023-01-31  Gaius Mulley  <gaiusmod2@gmail.com>
589         * libm2log/Makefile.am (VPATH): Replace gm2-libs-pim
590         with gm2-libs-log.
591         (libm2log_la_M2FLAGS): Replace gm2-libs-pim with
592         gm2-libs-log.
593         (install-data-local): Replace gm2-libs-pim with
594         gm2-libs-log.
595         * libm2log/Makefile.in: Rebuilt.
597 2023-01-26  Gaius Mulley  <gaiusmod2@gmail.com>
599         * configure.ac (AM_INIT_AUTOMAKE): Specify 1.15.1.
601 2023-01-24  Co-Authored by: Iain Sandoe  <iain@sandoe.co.uk>
603         * libm2cor/Makefile.am (SYSTEM.def): Split path into
604         multiple -I components.
605         * libm2cor/Makefile.in: Rebuild.
606         * libm2min/Makefile.am (SYSTEM.def): Split path into
607         multiple -I components.
608         * libm2min/Makefile.in: Rebuild.
609         * libm2iso/Makefile.am (SYSTEM.def): Split path into
610         multiple -I components.
611         * libm2iso/Makefile.in: Rebuild.
613 2023-01-23  Richard Biener  <rguenther@suse.de>
615         PR modula2/108144
616         * libm2cor/Makefile.am: Revert previous change, instead
617         drop the redundant $(MULTIDIR).
618         * libm2iso/Makefile.am: Likewise.
619         * libm2log/Makefile.am: Likewise.
620         * libm2min/Makefile.am: Likewise.
621         * libm2pim/Makefile.am: Likewise.
622         * libm2cor/Makefile.in: Regenerate.
623         * libm2iso/Makefile.in: Likewise.
624         * libm2log/Makefile.in: Likewise.
625         * libm2min/Makefile.in: Likewise.
626         * libm2pim/Makefile.in: Likewise.
628 2023-01-23  Richard Biener  <rguenther@suse.de>
630         PR modula2/108144
631         * configure.ac: Apply config-ml.pl to the generated Makefiles.
632         Set multilib_arg, use AM_PROG_LIBTOOL.
633         * configure: Regenerate.
634         * Makefile.am (AM_MAKEFLAGS): Do not override MULTI* flags.
635         * Makefile.in: Regenerate.
636         * libm2cor/Makefile.am: Install to $(toolexeclibdir)$(M2LIBDIR)
637         rather than $(inst_libdir)/$(MULTIDIR)$(M2LIBDIR).
638         * libm2iso/Makefile.am: Likewise.
639         * libm2log/Makefile.am: Likewise.
640         * libm2min/Makefile.am: Likewise.
641         * libm2pim/Makefile.am: Likewise.
642         * libm2cor/Makefile.in: Regenerate.
643         * libm2iso/Makefile.in: Likewise.
644         * libm2log/Makefile.in: Likewise.
645         * libm2min/Makefile.in: Likewise.
646         * libm2pim/Makefile.in: Likewise.
648 2023-01-19  Richard Biener  <rguenther@suse.de>
650         PR modula2/108144
651         * configure.ac: Add GCC_BASE_VER.
652         * configure: Re-generate.
653         * Makefile.am: Use @get_gcc_base_ver@ for gcc_version.
654         * libm2cor/Makefile.am: Likewise.  Use gcc_version instead
655         of version.
656         * libm2iso/Makefile.am: Likewise.
657         * libm2log/Makefile.am: Likewise.
658         * libm2min/Makefile.am: Likewise.
659         * libm2pim/Makefile.am: Likewise.
660         * Makefile.in: Re-generate.
661         * libm2cor/Makefile.in: Likewise.
662         * libm2iso/Makefile.in: Likewise.
663         * libm2log/Makefile.in: Likewise.
664         * libm2min/Makefile.in: Likewise.
665         * libm2pim/Makefile.in: Likewise.
667 2023-01-17  Gaius Mulley  <gaiusmod2@gmail.com>
669         * libm2iso/RTco.cc (_M2_RTco_fini): Call M2RTS_HaltC.
670         (newSem): Call M2RTS_HaltC.
671         (currentThread): Call M2RTS_HaltC.
672         (never): Call M2RTS_HaltC.
673         (defined): Call M2RTS_HaltC.
674         (initThread): Call M2RTS_HaltC.
675         (RTco_transfer): Call M2RTS_HaltC.
676         * libm2iso/m2rts.h (M2RTS_Halt): Provide parameter names.
677         (M2RTS_HaltC): New procedure declaration.
679 2023-01-06  v  <gaiusmod2@gmail.com>
681         * configure: Regenerate.
682         * configure.ac (libtool_VERSION): Bump to 18:0:0.
684 2023-01-04  Iain Sandoe  <iain@sandoe.co.uk>
686         PR modula2/108183
687         * libm2cor/KeyBoardLEDs.cc (_M2_KeyBoardLEDs_ctor): Rework to use
688         an extern "C" function with 'constructor' attribute.
689         * libm2iso/ErrnoCategory.cc (_M2_ErrnoCategory_ctor): Likewise.
690         * libm2iso/RTco.cc (_M2_RTco_ctor): Likewise.
691         * libm2pim/Selective.cc (_M2_Selective_ctor): Likewise.
692         * libm2pim/SysExceptions.cc (_M2_SysExceptions_ctor): Likewise.
693         * libm2pim/UnixArgs.cc (_M2_UnixArgs_ctor): Likewise.
694         * libm2pim/cgetopt.cc (_M2_cgetopt_ctor): Likewise.
695         * libm2pim/dtoa.cc (_M2_dtoa_ctor): Likewise.
696         * libm2pim/errno.cc (_M2_errno_ctor): Likewise.
697         * libm2pim/ldtoa.cc (_M2_ldtoa_ctor): Likewise.
698         * libm2pim/sckt.cc (_M2_sckt_ctor): Likewise.
699         * libm2pim/termios.cc (_M2_termios_ctor): Likewise.
700         * libm2pim/wrapc.c: Add a new line to the file end.
702 2022-12-31  Iain Sandoe  <iain@sandoe.co.uk>
704         * configure: Regenerate.
705         * configure.ac: Make a conditional for configurations targeting
706         Darwin.
707         * libm2cor/Makefile.am: Use -undefined,dynamic_lookup on Darwin.
708         * libm2iso/Makefile.am: Likewise.
709         * libm2log/Makefile.am: Likewise.
710         * libm2pim/Makefile.am: Likewise
711         * libm2min/Makefile.am: Likewise
712         * libm2cor/Makefile.in: Regenerate.
713         * libm2iso/Makefile.in: Regenerate.
714         * libm2log/Makefile.in: Regenerate.
715         * libm2min/Makefile.in: Regenerate.
716         * libm2pim/Makefile.in: Regenerate.
718 2022-12-14  Gaius Mulley  <gaiusmod2@gmail.com>
720         * Makefile.am: New file.
721         * autogen.sh: New file.
722         * config.h.in: New file.
723         * configure.ac: New file.
724         * libm2cor/KeyBoardLEDs.cc: New file.
725         * libm2cor/Makefile.am: New file.
726         * libm2iso/ChanConsts.h: New file.
727         * libm2iso/ErrnoCategory.cc: New file.
728         * libm2iso/Makefile.am: New file.
729         * libm2iso/RTco.cc: New file.
730         * libm2iso/m2rts.h: New file.
731         * libm2iso/wrapsock.c: New file.
732         * libm2iso/wraptime.c: New file.
733         * libm2log/Break.c: New file.
734         * libm2log/Makefile.am: New file.
735         * libm2min/Makefile.am: New file.
736         * libm2min/libc.c: New file.
737         * libm2pim/Makefile.am: New file.
738         * libm2pim/Selective.cc: New file.
739         * libm2pim/SysExceptions.cc: New file.
740         * libm2pim/UnixArgs.cc: New file.
741         * libm2pim/cgetopt.cc: New file.
742         * libm2pim/dtoa.cc: New file.
743         * libm2pim/errno.cc: New file.
744         * libm2pim/ldtoa.cc: New file.
745         * libm2pim/sckt.cc: New file.
746         * libm2pim/target.c: New file.
747         * libm2pim/termios.cc: New file.
748         * libm2pim/wrapc.c: New file.
749         * configure: Generated.
750         * libm2log/Makefile.in: Generated.
751         * libm2min/Makefile.in: Generated.
752         * libm2cor/Makefile.in: Generated.
753         * libm2pim/Makefile.in: Generated.
754         * libm2iso/Makefile.in: Generated.
755         * Makefile.in: New file.
756         * aclocal.m4: New file.