[Bug middle-end/117009] Wall should be in common.opt rather than the language specific .opt

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117009 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119221] RFE: fix-it hints for cobol syntax errors

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119221 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119336] cobol: missing copybooks break parser

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119336 --- Comment #3 from Simon Sobisch --- Current output: t.cob:1:25: error: could not open copybook file for '"notthere"' 1 | COPY "notthere". | ^ t.cob:1:35: error: syntax error, unexpected '.', expecting

[Bug cobol/119337] cobol: gcobc wrapper should deduce output name

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119337 Simon Sobisch changed: What|Removed |Added Resolution|--- |FIXED Status|REOPENED

[Bug cobol/120621] COBOL isn't built with STRICT_WARN

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120621 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/121346] New: FR for dialect mf: support $DISPLAY

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121346 Bug ID: 121346 Summary: FR for dialect mf: support $DISPLAY Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/121339] extension CALL ... USING fd-name missing

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121339 --- Comment #1 from Simon Sobisch --- .. and the current diagnostic: > error: DATA-ITEM 'FD-NAME' not found

[Bug cobol/121339] New: extension CALL ... USING fd-name missing

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121339 Bug ID: 121339 Summary: extension CALL ... USING fd-name missing Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120772] gcobc requires explicit -fPIC

2025-07-31 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120772 Simon Sobisch changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug cobol/120787] FR: EXHIBIT + EXHIBIT named support

2025-07-10 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120787 --- Comment #4 from Simon Sobisch --- > If CHANGED is not important, we can emit a not-implemented warning and always > print, changed or not. This is what GnuCOBOL does, leading to: * existing code compiles * code does run, it "just" creates

[Bug cobol/120772] gcobc requires explicit -fPIC

2025-07-08 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120772 --- Comment #4 from Simon Sobisch --- While I agree with Sam that this commit was much too big, consisting of too different things that would better have been split... this issue can be closed now.

[Bug cobol/119331] cobol: unimplemented exceptions abort compilation - even if requested to NOT use them

2025-07-07 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119331 --- Comment #4 from Simon Sobisch --- I see, so I guess you'll leave enabling in the command line interface for now and autogen+include a temporary CDF for disabling in cobcd?

[Bug cobol/120790] parser bug: ORGANIZATION IS RECORD SEQUENTIAL

2025-06-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120790 --- Comment #2 from Simon Sobisch --- (In reply to James K. Lowden from comment #1) > The local fix allows RECORD SEQUENTIAL instead of LINE SEQUENTIAL > unconditionally. you likely mean that one can use either, because RECORD SEQUENTIAL is ide

[Bug cobol/120787] FR: EXHIBIT + EXHIBIT named support

2025-06-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120787 --- Comment #2 from Simon Sobisch --- (In reply to James K. Lowden from comment #1) > Can this not be resolved with >>>COBOL-WORDS EQUATE DISPLAY WITH EXHIBIT Plain EXHIBIT could, but EXHIBIT NAMED does not. A force-included copybobok wit

[Bug cobol/120771] CDF broken

2025-06-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120771 --- Comment #2 from Simon Sobisch --- (In reply to James K. Lowden from comment #1) > For the following input > > $IF C-OBS-ARCH = "x86" > $if nested-missing = 7 > 77 something value "never". > $else > 77 s

[Bug cobol/120786] strange message for NOT=

2025-06-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120786 --- Comment #4 from Simon Sobisch --- > The only accommodation I see here is to parse NOT -- i.e., `NOT=` and friends, for algebraic symbols -- as two tokens. Sounds good (and will solve a bunch of syntax errors I've received). But would that

[Bug cobol/120786] strange message for NOT=

2025-06-24 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120786 --- Comment #2 from Simon Sobisch --- Just keep in mind that a , and ; are valid separators as well, not only spaces (they can be inserted nearly every place where a space can, with the exception of places where they are required). Rechecked wi

[Bug cobol/120804] FR: allow SET of numeric-display variables

2025-06-24 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120804 --- Comment #1 from Simon Sobisch --- happening in general, not only with literals: error: invalid SET T02-IND (FldNumericDisplay) TO T01-IND (FldNumericDisplay): not a field index

[Bug cobol/120804] New: FR: allow SET of numeric-display variables

2025-06-24 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120804 Bug ID: 120804 Summary: FR: allow SET of numeric-display variables Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120796] New: FR support non-standard REDEFINES position

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120796 Bug ID: 120796 Summary: FR support non-standard REDEFINES position Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120769] cobol frontend - provide a way to undo -ffixed-form / -ffree-form

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120769 --- Comment #3 from Simon Sobisch --- The issue at hand is that the command line is constructed from "defaults", which may include a fixed form request; and then later on the user overrides and want to use auto-detection. To your good outlined r

[Bug cobol/120794] New: extra separator periods lead to syntax error

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120794 Bug ID: 120794 Summary: extra separator periods lead to syntax error Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cob

[Bug cobol/120793] New: FR gcobc: handle -fnot-reserved

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120793 Bug ID: 120793 Summary: FR gcobc: handle -fnot-reserved Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120791] New: FR: support for MOVEing pointer to pointer

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120791 Bug ID: 120791 Summary: FR: support for MOVEing pointer to pointer Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120790] New: parser bug: ORGANIZATION IS RECORD SEQUENTIAL

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120790 Bug ID: 120790 Summary: parser bug: ORGANIZATION IS RECORD SEQUENTIAL Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: co

[Bug cobol/120787] New: FR: EXHIBIT + EXHIBIT named support

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120787 Bug ID: 120787 Summary: FR: EXHIBIT + EXHIBIT named support Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120786] New: strange message for NOT=

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120786 Bug ID: 120786 Summary: strange message for NOT= Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assigne

[Bug cobol/120779] New: HIGH-VALUE / LOW-VALUE not found

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120779 Bug ID: 120779 Summary: HIGH-VALUE / LOW-VALUE not found Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120769] cobol frontend - provide a way to undo -ffixed-form / -ffree-form

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120769 --- Comment #1 from Simon Sobisch --- Note: the auto format seems to not work any more, after getting errors with * in col 7 I had to manually switch to use "gcobc -fixed".

[Bug cobol/119337] cobol: gcobc wrapper should deduce output name

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119337 Simon Sobisch changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug cobol/120771] New: CDF broken

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120771 Bug ID: 120771 Summary: CDF broken Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assignee: unassigned

[Bug cobol/120772] New: gcobc requires explicit -fPIC

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120772 Bug ID: 120772 Summary: gcobc requires explicit -fPIC Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol As

[Bug cobol/120769] New: cobol frontend - provide a way to undo -ffixed-form / -ffree-form

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120769 Bug ID: 120769 Summary: cobol frontend - provide a way to undo -ffixed-form / -ffree-form Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal

[Bug cobol/119331] cobol: unimplemented exceptions abort compilation - even if requested to NOT use them

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119331 --- Comment #2 from Simon Sobisch --- This issue keep up popping in each test run :-/ Current output of gcobc --debug -fno-ec=DATA-INCOMPATIBLE -fno-ec=PROGRAM-ARG-MISMATCH -fno-ec=PROGRAM-ARG-OMITTED warning: --debug implies -fstack-check:

[Bug cobol/120768] New: cdf-includes: strange line numbers

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120768 Bug ID: 120768 Summary: cdf-includes: strange line numbers Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/120767] New: cdf-includes: needs to work in any source format (use of floating comment indicators

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120767 Bug ID: 120767 Summary: cdf-includes: needs to work in any source format (use of floating comment indicators Product: gcc Version: 16.0 Status: UNCONFIRMED Sev

[Bug cobol/120765] New: gcobc broken shellscript

2025-06-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120765 Bug ID: 120765 Summary: gcobc broken shellscript Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assigne

[Bug cobol/120715] FR: add COBOL2023 EDITING phrase to PICTURE clause

2025-06-19 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120715 --- Comment #1 from Simon Sobisch --- Note: the sample was mostly copied from the Annex D of COBOL2023, but I believe that to be in error and the right version to be EDITING CHARACTER L FOR NEGATIVE IS "(" EDITING CHARACTER F FOR

[Bug cobol/120715] New: FR: add COBOL2023 EDITING phrase to PICTURE clause

2025-06-19 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120715 Bug ID: 120715 Summary: FR: add COBOL2023 EDITING phrase to PICTURE clause Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug cobol/120623] gcobol-16 on i386-solaris results in "out of memory".

2025-06-19 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120623 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/120422] Reducing strcmp() and strlen() gcc/cobol/genapi.cc at f3a62dcfc96cb24127385a7e668133e037b6085d

2025-06-19 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120422 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119636] compile error: gcobol1 does not find file descriptions in case of obsolete FD phrases

2025-06-16 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119636 --- Comment #5 from Simon Sobisch --- Note: While I'm all for cleaning up COBOL code, we do run some programs that still have that in... ignoring (possibly with a warning, but for other compilers you have to enable outputting those) would be muc

[Bug cobol/119933] cobol builds on loongarch64-linux-gnu with test failures

2025-06-16 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119933 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119805] FE: COMP-5 / COMP-X issues

2025-06-16 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119805 --- Comment #5 from Simon Sobisch --- I possibly need to wait one day more (just tested with the godbolt snapshot from yesterday)... but there: * compiles as expected with dialects gnu and mf * raises the same error message without dialect or w

[Bug cobol/119769] FE: GnuCOBOL extension BINARY-C-LONG missing

2025-06-16 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119769 Simon Sobisch changed: What|Removed |Added Resolution|FIXED |--- Status|RESOLVED

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars for UB (function call with wrong amount of arguments)

2025-06-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #11 from Simon Sobisch --- Note: it only does not work with optimizations... but I understand the point of UB - seems we got "away lucky" since quite some time for this, but with C23 default the function pointers need to be adjusted

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-26 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #9 from Simon Sobisch --- Checked -fstack-reuse=none - same abort. The main issue here is the language this C code has to cover: COBOL allows for any trailing arguments to be "left out". If the COBOL compiler knows about the paramet

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #7 from Simon Sobisch --- UB may be necessary to trigger that (and with GCC+libc that _does_ work on all environments but GNU/Linux 32bit [in theory it could also be multiarch -m32, but I think that should not make a difference]) :-/

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-25 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #4 from Simon Sobisch --- @sjames: What do you mean with "needs reduction"? And do you intend to do it on your own? [Note: I've reduced the original program that was generated from as much as possible, then also reduced the amount o

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-24 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #3 from Simon Sobisch --- Created attachment 61511 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61511&action=edit save-temps: preprocessed and assembly

[Bug target/120417] gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 --- Comment #2 from Simon Sobisch --- I'll provide the result of --save-temps later, so you see both the .i and .s files. Note that to link and run the code you'd have to have a matching GnuCOBOL installation (linked tarball has 5MB and only li

[Bug cobol/119457] gcobol: big codegen for simple STRING plus malloc/free (and missing optimization)

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119457 --- Comment #2 from Simon Sobisch --- I tend to disagree as the referenced one is explicit about MOVE (and of course using matching type assignments and functions, possibly split like for strings using memcpy+memset for space is most reasonable

[Bug cobol/119633] compile error for debug-module USE FOR DEBUGGING

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119633 --- Comment #2 from Simon Sobisch --- Nearly agreed. As long as there is no "WITH DEBUGGING" active (which you can warn or even error on) an indicator D is, just as a * or a / an indicator defining that the line has no executable code. It can a

[Bug cobol/120402] gcobol does not check precedence of PIC characters

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120402 --- Comment #2 from Simon Sobisch --- Yes, U as per currently IBM (the COBOL Development group is in the process of adding it for the next standard). To handle the precedence - feel free to copy GnuCOBOL's implementation in cobc/tree.c, especia

[Bug cobol/119454] gcobol: error: unrecognized command-line option ‘-save-temps’

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119454 --- Comment #3 from Simon Sobisch --- The "how to create a bug report" is identical for all GCC frontends (so far). It is documented at https://gcc.gnu.org/bugs/#detailed > In general, all the information we need can be obtained by collecting t

[Bug c/120417] New: gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars

2025-05-23 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120417 Bug ID: 120417 Summary: gcc -m32 -O1 codegen error, leading to SIGSEGV, workaround -fno-tree-coalesce-vars Product: gcc Version: 14.2.0 Status: UNCONFIRMED Sev

[Bug c/120402] New: gcobol does not check precedence of PIC characters

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120402 Bug ID: 120402 Summary: gcobol does not check precedence of PIC characters Product: gcc Version: 13.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compon

[Bug cobol/120401] New: gcobol allows arithmetic on alphanumeric fields

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120401 Bug ID: 120401 Summary: gcobol allows arithmetic on alphanumeric fields Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug cobol/119805] FE: COMP-5 / COMP-X issues

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119805 --- Comment #2 from Simon Sobisch --- ... no, only fails without dialect; with gnu/ibm now compiles

[Bug cobol/119768] FE: parsing PIC N and NAT is broken

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119768 --- Comment #1 from Simon Sobisch --- still happens; note: for improved error handling the "guessed Alphanumeric-edited" could be used to internally define nat, for example as plain PIC X, that would prevent the second error

[Bug cobol/119805] FE: COMP-5 / COMP-X issues

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119805 --- Comment #1 from Simon Sobisch --- still failing with today's package

[Bug cobol/119821] FE (parser): CONFIGURATION SECTION rejects valid code - empty paragraphs

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119821 Simon Sobisch changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug cobol/119883] codegen: recursive user-defined functions don't run recursive

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119883 Simon Sobisch changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug cobol/119638] WRITE FROM x BEFORE Y raises compile error (SQ207M)

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119638 --- Comment #2 from Simon Sobisch --- Ooops - current debian package results in gcobol tests/cobol85/SQ/SQ207M.CBL (null):0: confused by earlier errors, bailing out That seems like a sever bug (@jklowden: feel free to create a new one for th

[Bug cobol/119634] compile error: sorry, unimplemented: Global declarative _DECLARATIVES_EVAL1

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119634 --- Comment #1 from Simon Sobisch --- rechecked with today's debian package (now gcc 16), the result is identical, also with -dialect ibm Note: current versions still document the USE statement for procedures https://www.ibm.com/docs/en/cobol-z

[Bug cobol/119520] cobol1: internal compiler error: Segmentation fault (use of field with unknown TYPEDEF)

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119520 Simon Sobisch changed: What|Removed |Added Resolution|WORKSFORME |FIXED --- Comment #2 from Simon Sobisch

[Bug cobol/119332] cobol frontend does not support version dump options specified in --help

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119332 --- Comment #3 from Simon Sobisch --- Instead of "/dev/null" you can also write "banana", it doesn't matter. Seems like the option parsing is broken "somewhere".

[Bug cobol/119256] Capture source ranges for tokens in gcobol

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119256 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119638] WRITE FROM x BEFORE Y raises compile error (SQ207M)

2025-05-22 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119638 --- Comment #1 from Simon Sobisch --- ping @jklowden

[Bug cobol/119636] compile error: gcobol1 does not find file descriptions in case of obsolete FD phrases

2025-05-20 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119636 --- Comment #4 from Simon Sobisch --- Please reopen as this is not about doing anything with the obsolete code in any way, but ignoring = "parse in the water". The main issue is that the FD is not recognized any more, and yes, there are a lot o

[Bug cobol/119632] section segments (cobol85) not implemented, "ignored" -> raising compile error

2025-05-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119632 --- Comment #9 from Simon Sobisch --- Note: GnuCOBOL also support that, just in case a paying customer comes around :-) To not break NIST85 gcobol should set -std=cobol85 to -dialect ibm, with the current implementation. (Note: "stacking" -dia

[Bug cobol/119809] FE internal_error internal compiler error: in digits_from_float128, at cobol/genapi.cc:15293 (bit data items)

2025-05-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119809 --- Comment #4 from Simon Sobisch --- Looking forward to have a compiler targetting ISO COBOL to support that one day :-) Note: in C this would be a struct with int : 1, included, I think.

[Bug cobol/119810] FE: -include does not unset "included from"

2025-05-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119810 --- Comment #3 from Simon Sobisch --- Current GCC only raises that error if there is no NL after the final (which seems an interesting bug as well), so you won't see that error with the code example. Just use DATA DIVI. (= a syntax error), may

[Bug cobol/119632] section segments (cobol85) not implemented, "ignored" -> raising compile error

2025-05-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119632 --- Comment #7 from Simon Sobisch --- I think https://gitlab.cobolworx.com/COBOLworx/gcc-cobol/-/commit/9c2fcd3606662e550aea6173b06bc2a500b2ac52 is the right approach (adding a warning later, syntax-check if not iso, otherwise abort). But it sh

[Bug cobol/119335] cobol frontend ignores -M

2025-05-10 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335 --- Comment #2 from Simon Sobisch --- That's totally fine if those are _really_ the files read-in as copybooks (if they were opened with an extension, then of course this should be in).

[Bug cobol/119769] FE: GnuCOBOL extension BINARY-C-LONG missing

2025-05-07 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119769 Simon Sobisch changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED

[Bug cobol/119632] section segments (cobol85) not implemented, "ignored" -> raising compile error

2025-05-02 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119632 --- Comment #5 from Simon Sobisch --- @Bob, what do you think of committing that patch as it waits on one of the COBOL maintainers (and later or work on supporting that - at least as "ignored")?

[Bug cobol/119364] building a cobol cross compiler on i686-linux-gnu targeting x86_64-linux-gnu fails

2025-04-27 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119364 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119887] New: runtime-switches are not documented / implemented (and don't pass NC211A and others)

2025-04-21 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119887 Bug ID: 119887 Summary: runtime-switches are not documented / implemented (and don't pass NC211A and others) Product: gcc Version: 15.0 Status: UNCONFIRMED Sev

[Bug cobol/119886] New: runtime-switches are not documented / implemented (and don

2025-04-21 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119886 Bug ID: 119886 Summary: runtime-switches are not documented / implemented (and don Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pr

[Bug cobol/119885] New: libgcobol: SQRT wrong argument check

2025-04-21 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119885 Bug ID: 119885 Summary: libgcobol: SQRT wrong argument check Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/119883] New: codegen: recursive user-defined functions don't run recursive

2025-04-21 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119883 Bug ID: 119883 Summary: codegen: recursive user-defined functions don't run recursive Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug cobol/119825] gcobol XML generate forces bug report

2025-04-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119825 Simon Sobisch changed: What|Removed |Added CC||jklowden at gcc dot gnu.org --- Comment

[Bug cobol/119825] gcobol XML generate forces bug report

2025-04-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119825 --- Comment #2 from Simon Sobisch --- looks like the error comes from name resolution and is also reproducible with a much more simple Program-id. NofBug. Data division. Working-storage section. 01 billTo.

[Bug cobol/119821] New: FE (parser): CONFIGURATION SECTION rejects valid code - empty paragraphs

2025-04-15 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119821 Bug ID: 119821 Summary: FE (parser): CONFIGURATION SECTION rejects valid code - empty paragraphs Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: norma

[Bug cobol/119810] New: FE: -include does not unset "included from"

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119810 Bug ID: 119810 Summary: FE: -include does not unset "included from" Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobo

[Bug cobol/119331] cobol: unimplemented exceptions abort compilation - even if requested to NOT use them

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119331 --- Comment #1 from Simon Sobisch --- Side note: there's a working patch for gcobc at https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680218.html which improves it in general - but this part was explicit left out

[Bug cobol/119809] New: FE internal_error internal compiler error: in digits_from_float128, at cobol/genapi.cc:15293 (bit data items)

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119809 Bug ID: 119809 Summary: FE internal_error internal compiler error: in digits_from_float128, at cobol/genapi.cc:15293 (bit data items) Product: gcc Version: 15.0

[Bug cobol/119759] LICENSE file in gcc/cobol

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119759 --- Comment #3 from Simon Sobisch --- Note "Copyright (c) 2021-2025 Symas Corporation" is also part of several files, for example gcc/gcobol/parse.y

[Bug cobol/119805] New: COMP-5 / COMP-X issues

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119805 Bug ID: 119805 Summary: COMP-5 / COMP-X issues Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assignee:

[Bug cobol/119777] [15 Regression] COBOL '-fsyntax-only', 'RejectNegative'

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119777 --- Comment #6 from Simon Sobisch --- Looks good to me (and yes, --include should be possible multiple times), but I haven't tested this or am a maintainer for gcobol... Seems -Wall and --verbose (or -v only?) are different beasts, then.

[Bug cobol/119793] New: FR FE (parser): addition of BASED-STORAGE SECTION (Fujitsu)

2025-04-14 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119793 Bug ID: 119793 Summary: FR FE (parser): addition of BASED-STORAGE SECTION (Fujitsu) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal P

[Bug cobol/119790] New: FE (parser): CONSTANT AS figurative-constant broken

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119790 Bug ID: 119790 Summary: FE (parser): CONSTANT AS figurative-constant broken Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug cobol/119777] [15 Regression] COBOL '-fsyntax-only', 'RejectNegative'

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119777 Simon Sobisch changed: What|Removed |Added CC||simonsobisch at gnu dot org --- Comment

[Bug cobol/119772] New: FE: COBOL2025/2026 (original GnuCOBOL extension) LENGTH OF usage-specification missing

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119772 Bug ID: 119772 Summary: FE: COBOL2025/2026 (original GnuCOBOL extension) LENGTH OF usage-specification missing Product: gcc Version: 15.0 Status: UNCONFIRMED S

[Bug cobol/119771] New: FE (parser): CONSTANT AS LENGTH OF does not error - but result in length of zero

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119771 Bug ID: 119771 Summary: FE (parser): CONSTANT AS LENGTH OF does not error - but result in length of zero Product: gcc Version: 15.0 Status: UNCONFIRMED Sever

[Bug cobol/119770] New: FLOAT-DECIMAL support + "cannot MOVE '_stack1'"

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119770 Bug ID: 119770 Summary: FLOAT-DECIMAL support + "cannot MOVE '_stack1'" Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug cobol/119769] New: FE: GnuCOBOL extension BINARY-C-LONG missing

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119769 Bug ID: 119769 Summary: FE: GnuCOBOL extension BINARY-C-LONG missing Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cob

[Bug cobol/119768] New: FE: parsing PIC N and NAT is broken

2025-04-13 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119768 Bug ID: 119768 Summary: FE: parsing PIC N and NAT is broken Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol

[Bug cobol/119759] New: LICENSE file in gcc/cobol

2025-04-12 Thread simonsobisch at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119759 Bug ID: 119759 Summary: LICENSE file in gcc/cobol Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: cobol Assign

  1   2   >