Hi Folks,
I have pushed my WIP here:
https://forge.sourceware.org/iains/gcc-TEST/src/branch/master-wip-cobol
(if you like the forge)
and here:
https://github.com/iains/gcc-git/tree/master-wip-cobol
(in case you are more familiar with GH)
With these I get the same testsuite results as x86_64 Linux (and Linux gets the
same results when building this branch).
This is FIO the patches are in the following categories:
1. patches outside cobol that the cobol implementation happened to reveal (I
will post those for review in due course)
2. patches that address specific BZ reports
3. hacks for things I don’t know how to fix properly yet.
4. Darwin-specific patches, which I can apply without additional review.
I will try to post the patches in category 1 and 2 as and when time permits
(and where they pertain to a BZ I’ve already attached them there)
The goal of posting the branch is to avoid people wasting time repeating the
work here - in case it takes me time to post them for review.
have fun,
Iain
P.S0 - this is *only* x86_64 macOS - although maybe I will try a merge with the
current Arm64 support at some point.
P.S1 - I will rebase this branch from time to time .. and add things as they
become clearer
P.S2 - I have written (probably 40 years ago) about 20 lines of COBOL; my
partner was working in the finance sector and had a coding problem which
essentially needed a shift register… I duly wrote one for her (demonstrating
that one _can_ write Fortran in any language).
.. so that’s the limit of my expertise .. i.e. ≈ 0.
———— Yippee! .. we have cobol...
Native configuration is x86_64-apple-darwin21
=== cobol tests ===
Schedule of variations:
unix
Running target unix
Using
/opt/iains/x86_64-apple-darwin21/gcc-build-tools/share/dejagnu/baseboards/unix.exp
as board description file for target.
Using
/opt/iains/x86_64-apple-darwin21/gcc-build-tools/share/dejagnu/config/unix.exp
as generic interface file for target.
Using /src-local/gcc-master/gcc/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running /src-local/gcc-master/gcc/testsuite/cobol.dg/dg.exp ...
=== cobol Summary ===
# of expected passes 21
# of expected failures 6
/scratch/12-mon-rosetta/gcc-master/gcc/gcobol version 15.0.1 20250316
(experimental) [master-wip-cobol revision r15-8088-gada8e093a8ed] (GCC)