commit a39aee6c5dcd0ae84e4b610e0a707d49f25eb005
Author: Xavier Del Campo Romero <[email protected]>
Date: Tue Sep 29 16:34:03 2026 +0200
cobol: Add POSIX tests
gcc/testsuite/ChangeLog:
* cobol.dg/group2/Hello.cob: New test.
* cobol.dg/group2/Hello.out: New test.
* cobol.dg/group2/Read_and_write_errno.cob: New test.
* cobol.dg/group2/Read_and_write_errno.out: New test.
commit bfc00c04a00c83e6428a1bd25df70a9fe628fcb6
Author: Xavier Del Campo Romero <[email protected]>
Date: Tue Sep 29 16:07:39 2026 +0200
cobol: Disable lib{compat,posix} if requested
There are various options that already disabled libgcobol and other
standard libraries. However, libcompat and libposix had been missing
from the list for some reason.
gcc/cobol/ChangeLog:
* gcobolspec.cc (lang_specific_driver): Disable
lib{compat,posix}
if requested.
commit 7c076b9ae0a9ee200314172c682edbc9811a2699
Author: Xavier Del Campo Romero <[email protected]>
Date: Tue Sep 29 16:01:49 2026 +0200
cobol: Make libposix always available
This library includes POSIX bindings for COBOL that must be always
made available to users, rather than being limited to the IBM and
MF
dialects.
gcc/cobol/ChangeLog:
* gcobolspec.cc (lang_specific_driver): Init need_libposix to
true.
commit 91f59cb35a9e76d9d15273778a3d2e43c91727c5
Author: Xavier Del Campo Romero <[email protected]>
Date: Tue Sep 29 15:31:49 2026 +0200
cobol: Add OPTIONAL arg to posix-errno
It might be desirable for some applications to set errno(5)
explicitly.
However, gcobol did not define any mechanism to assign it.
Therefore, this commit extends libgcobol's posix-errno with an
OPTIONAL
argument with the target value. If the new value is not OMITTED, errno
is modified accordingly, and the old errno value is returned.
libgcobol/ChangeLog:
* posix/cpy/posix-errno.cpy: Add new OPTIONAL arg.
* posix/shim/errno.cc (posix_errno): Set errno if required.
* posix/udf/posix-errno.cbl: Add new OPTIONAL arg.
commit 0929da090008a6cb818784099c0571d64e435ebf
Author: Xavier Del Campo Romero <[email protected]>
Date: Tue Sep 29 16:35:10 2026 +0200
cobol: Add new tests for CBL_GET_PROGRAM_INFO
gcc/testsuite/ChangeLog:
*
cobol.dg/group2/CBL_GET_PROGRAM_INFO__returned_buffer_length_.cob: New
test.
*
cobol.dg/group2/CBL_GET_PROGRAM_INFO__returned_buffer_length_.out: New
test.