Re: Re: [PATCH] Add COBOL to htdocs/gcc-15/changes.html.

2025-04-17 Thread Simon Sobisch
Please adjust the text, there are too many people claiming NIST passing, but in case of gcobol - that's not true even if you ignore modules that are now obsolete or archaic. See my mail on how to run NIST with the GnuCOBOL setup - still too many failures. I hope that statement may be true in a

ping on fixes for cobol.1 + gcobc

2025-04-11 Thread Simon Sobisch
with GCC 15.1 in sight... ping on gcobc wrapper fixes and additions: https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680218.html (note: obviously it would be good if -Wall [1] would work (the "global" PR for -Wall was postponed to GCC16, so possibly add to gcobol as intermediate?), then

Re: [PATCH] cobol: Allow for undefined NAME_MAX [PR119217]

2025-04-11 Thread Simon Sobisch
> You're right: seems to be all about COBOL function names. No idea what value is appropriate/required here, though. if this is about COBOL internal function names: ISO says and GnuCOBOL therefore defines /* Maximum length of COBOL words */ #define COB_MAX_WORDLEN 63 Note that _extern

Re: [PATCH] cobol: Avoid conflict with OVERFLOW in system headers [PR119217]

2025-04-11 Thread Simon Sobisch
Shouldn't that be --- a/gcc/cobol/parse.y +++ b/gcc/cobol/parse.y @@ -337,7 +337,7 @@ %token INVALID %token NUMBER NEGATIVE %token NUMSTR"numeric literal" -%token OVERFLOW +%token OVERFLOW_kw "OVERFLOW" %token COMPUTATIONAL ? Otherwise biso

cobol.1 fix for not using underscores in intrinsic function names

2025-04-09 Thread Simon Sobisch
just stumbled over this and only have a mail client running, so... patch as text. The change is in all those cases: change _ (likely parsed from the parser or similar) to -. Kind regards, Simon -BASECONVERT BIT_OF BIT_TO_CHAR BOOLEAN_OF_INTEGER BYTE_LENGTH +BASECONVERT BIT-OF BIT-TO-CHAR BOO

Re: [PATCH] cobol: Fix up update_web_docs_git for COBOL [PR119227]

2025-04-08 Thread Simon Sobisch
Note that there's still an index.html missing, compare https://gcc.gnu.org/onlinedocs/gfortran/index.html and https://gcc.gnu.org/onlinedocs/gcobol/index.html (not found) Simon

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
Am 07.04.2025 um 09:36 schrieb Jakub Jelinek: On Mon, Apr 07, 2025 at 09:30:59AM +0200, Richard Biener wrote: On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf,

Re: ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
Am 07.04.2025 um 09:30 schrieb Richard Biener: On Mon, Apr 7, 2025 at 9:00 AM Simon Sobisch wrote: My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf, which is a requirement for VCS checkouts], possibly also h

ping: COBOL: testsuite and running NIST85

2025-04-07 Thread Simon Sobisch
My question stands on integrating COBOLworx' UAT as-is for now (Copyright is all on FSF; built automatically [it is autoconf, which is a requirement for VCS checkouts], possibly also hooked into the current test target) - with the goal to get rid of UAT later (next GCC version, not GCC 15). T

Re: [PATCH][RFC] [cobol] change cbl_field_data_t::etc_t::value from _Float128 to tree

2025-04-05 Thread Simon Sobisch
> Now a question on COBOL: > > 77 var8 PIC 999V9(8) COMP-5 > > what precision/digits does this specify? When then doing > > add 0.0001 TO var555 giving var8 rounded > > what's the precision/digit specification for the literal floating > point values and how does that or that of var55

Re: [committed] cobol: Eliminate cobolworx UAT errors when compiling with -Os

2025-04-04 Thread Simon Sobisch
Nice that you have that covered, and thanks for sharing your way there. I just want to offer an additional thing to consider: different environments have a different byte-size for the return code (most common on COBOL for PC is 4, but 2 and 8 also exist). Micro Focus COBOL and GnuCOBOL have a

Subject: [PATCH] cobol: gcobc wrapper fixes and additions

2025-04-04 Thread Simon Sobisch
cobol-dbg/bin/gcobc COBOL_FLAGS="-fixed -g -Q -rpath -Q /usr/local/gcobol-dbg/lib64" (the -fixed is necessary as current gcobol does not deduce the fixed-format in NIST correctly) Kind regards, Simon From 187bffd7ac3fb6097d99fe54e28853bd7aeda637 Mon Sep 17 00:00:00 2001 From: Simo

Re: COBOL: Implementation of STOP RUN / GOBACK

2025-04-04 Thread Simon Sobisch
Am 20.03.2025 um 21:50 schrieb James K. Lowden: On Mar 13, 2025, at 8:04 AM, Simon Sobisch wrote: exit() allows us to "pass to the operating system" directly; but it doesn't directly say "success" or "fail". Obviously the statements STOP RUN WI

Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules

2025-03-28 Thread Simon Sobisch
Thanks, I agree that the explicit include of library headers from frontend should include the library folder explicitly.

Re: [PATCH] cobol: Fix up cobol/{charmaps,valconv}.cc rules

2025-03-28 Thread Simon Sobisch
+cobol/charmaps.cc cobol/valconv.cc: cobol/%.cc: $(LIB_SOURCE)/%.cc + -l='ec\|common-defs\|io\|gcobolio\|libgcobol\|gfileio\|charmaps'; \ + l=$$l'\|valconv\|exceptl'; \ + sed -e '/^#include/s,"\('$$l'\)\.h","../../libgcobol/\1.h",' $^ > $@ The proposed rule is much better than

COBOL constant compile-time expressions and numeric literals (was: [PATCH][RFC] [cobol] change cbl_field_data_t::etc_t::value from _Float128 to tree)

2025-03-27 Thread Simon Sobisch
> Section 8.3.3.3 of the ISO spec defines both fixed- and floating-point > numeric literals. > > "A fixed-point numeric literal is a character-string whose > characters are selected from the digits '0' through '9', the plus > sign, the minus sign, and the decimal point. The implementor shall > all

COBOL: why not getting UAT/NIST "temporarily" to trunk (was: [PATCH] cobol, v2: Get rid of __int128 uses in the COBOL FE [PR119242])

2025-03-27 Thread Simon Sobisch
> > Implicit criticism about tests accepted. I have 679 UAT tests, and > > now I've got the bit in my teeth, and I am creating a process that > > will convert as many as I can to DejaGnu. However: the autom4te and > > DejaGnu principles, practices, and philosophies are almost, but not > > quite,

cobol: default iconv encoding (was: [PATCH] cobol: Address some iconv issues.)

2025-03-22 Thread Simon Sobisch
> Secondly, using Windows code page 1252 as a default seems overly restrictive. >-static const char standard_internal[] = "CP1252//"; >+static const char standard_internal[] = >+#if __APPLE__ >+"ISO8859-1"; >+#else >+"CP1252//"; >+#endif I'd highly suggest to go with ISO8859-15 in general (=drop

Re: COBOL: Implementation of STOP RUN / GOBACK

2025-03-21 Thread Simon Sobisch
Am 21.03.2025 um 11:50 schrieb Jose E. Marchesi: Am 20.03.2025 um 21:50 schrieb James K. Lowden: On Mar 13, 2025, at 8:04 AM, Simon Sobisch wrote: exit() allows us to "pass to the operating system" directly; but it doesn't directly say "success" or "fai

Re: Re: [PATCH] cobol: Fifteen new cobol.dg testscases.

2025-03-17 Thread Simon Sobisch
Is there a compelling reason for all this output? As a rule of thumb I'd suggest to only output if the data has an unexpected value or if the test is about DISPLAY. ... maybe the compiler is expected (and already capable?) to know the data values and optimize all comparisons away - in this case

Re: cobol: flags for choosing reference-format

2025-03-17 Thread Simon Sobisch
Am 17.03.2025 um 18:25 schrieb James K. Lowden: On Sun, 16 Mar 2025 21:07:39 +0100 Simon Sobisch wrote: This gives three reference-formats: "fixed" "free" and "extended". For two of those we have seen the flags -ffixed-form and -ffree-form, so I'd _gues

cobol: flags for choosing reference-format (Re: [PATCH]cobol: create new gcc/testsuite/cobol.dg/group1/check_88.cob test)

2025-03-16 Thread Simon Sobisch
> Fixed-form, known as "reference format", is still more-or-less > required by IBM. Forced in gcobol with the option "-ffixed-form". > Can be controlled inside a source code file with the compiler > directive ">> SOURCE FORMAT IS FREE" > > Columns 1-6 ignored > Column7 * for comment, - for

Re: [PATCH][v3] Simple cobol.dg testsuite

2025-03-13 Thread Simon Sobisch
Am 13.03.2025 um 21:35 schrieb David Malcolm: On Thu, 2025-03-13 at 12:11 +0100, Simon Sobisch wrote: Thanks for your work on adding a testsuite. Can you please explain why you do this when a complete testsuite exists in autoconf (autotest) format (which roots back to decade of work in

COBOL: testsuite and running NIST85 (was: Re: [PATCH][v3] Simple cobol.dg testsuite)

2025-03-13 Thread Simon Sobisch
Am 13.03.2025 um 12:49 schrieb Richard Biener: On Thu, 13 Mar 2025, Sam James wrote: Simon Sobisch writes: Thanks for your work on adding a testsuite. Can you please explain why you do this when a complete testsuite exists in autoconf (autotest) format (which roots back to decade of work

COBOL: Implementation of STOP RUN / GOBACK [was: [PATCH][v3] Simple cobol.dg testsuite]

2025-03-13 Thread Simon Sobisch
> Earlier in this discussion of a testsuite, the question came up about > generating an error return in COBOL source code. > > In COBOL, "GOBACK ERROR 1." is the equivalent of a C "return 1;". > When executed in the initial "top-level" program-id, it results in > the value 1 being passed back to

Re: [PATCH][v3] Simple cobol.dg testsuite

2025-03-13 Thread Simon Sobisch
Thanks for your work on adding a testsuite. Can you please explain why you do this when a complete testsuite exists in autoconf (autotest) format (which roots back to decade of work in GnuCOBOL, with all copyrights for that already with the FSF)? Is the existence of this in upstream [1] just u

Re: [PATCH 0/6] v2 of libdiagnostics

2024-01-27 Thread Simon Sobisch
Hi David - and thanks for posting an outline for libdiagnostics at https://gcc.gnu.org/wiki/libdiagnostics Currently this shows both libdiagnosts and libdiagnostics-sarif-dump integrated into GCC. Is this the plan or would those be available as a top-level project (the program as an example for

Re: [PATCH 0/6] v2 of libdiagnostics

2023-11-21 Thread Simon Sobisch
Thank you for your efforts. Having the wiki page to track this definitely is useful! I'll have a look at the "real patch" later, likely next week. But for patch 4+5 which look quite clean: can we get an early improvement and inclusion into GCC for those? They only adjust internals and should be

Re: [PATCH 2/2] libdiagnostics: work-in-progress implementation

2023-11-07 Thread Simon Sobisch
Am 07.11.2023 um 15:59 schrieb David Malcolm: On Tue, 2023-11-07 at 08:54 +0100, Simon Sobisch wrote: Thank you for our work and providing this patch. GCC related questions: Is it planned to change GCC diagnostics to use libdiagnostic itself? No. GCC uses C++ internally, and the

Re: [PATCH 2/2] libdiagnostics: work-in-progress implementation

2023-11-06 Thread Simon Sobisch
Thank you for our work and providing this patch. GCC related questions: Is it planned to change GCC diagnostics to use libdiagnostic itself? Is it planned to "directly" add features or would the result for GCC be identical (apart from build changes)? So far it looks like it wouldn't be possi

Re: [PATCH] binutils: experimental use of libdiagnostics in gas

2023-11-06 Thread Simon Sobisch
Thank you very much for this proof-of-concept use! Inspecting it raises the following questions to me, both for a possible binutils implementation and for the library use in general: * How should the application set the relevant context (often lines are shown before/after)? * Should it be po

Re: libiberty: Would it be reasonable to add support for GnuCOBOL function name demangling?

2022-05-28 Thread Simon Sobisch via Gcc-patches
Am 27.05.22 um 20:31 schrieb Eric Gallager: On Fri, May 27, 2022 at 3:17 AM Simon Sobisch via Gcc-patches wrote: [...] the first question is: is it reasonable to add support for GnuCOBOL? * How would the demangler know it is to be called? Just "best match" (GnuCOBOL modules always

libiberty: Would it be reasonable to add support for GnuCOBOL function name demangling?

2022-05-27 Thread Simon Sobisch via Gcc-patches
;we" or I start? Thank you for taking the time to read and possibly answer, Simon Sobisch Maintainer GnuCOBOL OpenPGP_0x13E96B53C005604E.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature