[Bug cobol/119335] cobol frontend ignores -M

2025-05-21 Thread jklowden at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335

James K. Lowden  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from James K. Lowden  ---
Marked as fixed until further notice.  The list produced by -M is taken from
the names recorded by processing COPY statements.  The same list is used to
prevent COPY recursion and to report filenames and line numbers for diagnostic
messages.  It should be right.  

We do not as of now attempt to report nesting; all copybooks used by X are
reported as dependencies of X.  If one copybook in that chain depends on
another, that fact is not evinced by the -M option.

[Bug cobol/119335] cobol frontend ignores -M

2025-05-20 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335

--- Comment #3 from GCC Commits  ---
The master branch has been updated by Robert Dubner :

https://gcc.gnu.org/g:fba34a0cc55488ad89becf81cf2c9ac517d244d4

commit r16-764-gfba34a0cc55488ad89becf81cf2c9ac517d244d4
Author: Robert Dubner 
Date:   Tue May 20 13:35:15 2025 -0400

cobol: Multiple PRs; formatting; exception processing.

The PRs mentined here have either been previously fixed, or are fixed by
this commit.

gcc/cobol/ChangeLog:

PR cobol/119770
PR cobol/119772
PR cobol/119790
PR cobol/119771
PR cobol/119810
PR cobol/119335
PR cobol/119632
* cdf-copy.cc (GLOB_BRACE): Eliminate .
* cdfval.h (_CDF_VAL_H_): Switch to C++ headers.
* copybook.h (class copybook_elem_t): Eliminate .
(class copybook_t): Likewise.
* gcobc: Numerous changes to improve utility.
* gcobol.1: Correct names in the list of functions.
* genapi.cc (compare_binary_binary): Use has_attr() function.
* lexio.cc (cdftext::lex_open): Typo; filename logic.
(cdftext::process_file): Filename logic.
* parse.y: Numerous parsing changes.
* parse_ante.h (new_alphanumeric): C++ includes; changes to
temporaries.
(new_tempnumeric): Likewise.
(new_tempnumeric_float): Likewise.
(set_real_from_capacity): Created.
* scan.l: Use yy_pop_state().
* scan_ante.h (typed_name): Find figconst from data.initial.
* symbols.cc (symbol_valid_udf_args): Eliminate.
(symbols_update): figconst processing.
(new_temporary_impl): For functions, set .initial to function name.
(temporaries_t::acquire): Likewise.
(new_alphanumeric): Likewise.
(new_temporary): Likewise.
* symbols.h (_SYMBOLS_H_): Use C++ includes.
(cbl_figconst_tok): Change handling of figconst.
(cbl_figconst_field_of): Change handling of figconst.
(symbol_valid_udf_args): Eliminate.
* symfind.cc (symbol_match2): Change declaration.
(symbol_match): Change declaration.

libgcobol/ChangeLog:

* charmaps.cc: Switch to C++ includes.
* common-defs.h: Likewise.
* constants.cc: Likewise.
* ec.h: Remove #include .
* gcobolio.h (GCOBOLIO_H_): Switch to C++ includes.
* gfileio.cc: Likewise.
* gmath.cc: Likewise.
* intrinsic.cc: Comment formatting; C++ includes.
* io.cc: C++ includes.
* libgcobol.cc: (__gg__stash_exceptions): Eliminate.
* valconv.cc: Switch to C++ includes.

Co-Authored-By: James K. Lowden 

[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/119335] cobol frontend ignores -M

2025-05-10 Thread jklowden at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335

James K. Lowden  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |jklowden at gcc dot 
gnu.org
 Status|WAITING |ASSIGNED

--- Comment #1 from James K. Lowden  ---
Is this acceptable? 

$ gcobol -I CLBRY-SM101A -M SM101A.cbl
SM101A.cbl: \
CLBRY-SM101A/K101A \
CLBRY-SM101A/K1FDA \
CLBRY-SM101A/K1P01 \
CLBRY-SM101A/K1PRA \
CLBRY-SM101A/K1SEA \
CLBRY-SM101A/K1W01 \
CLBRY-SM101A/K1W02 \
CLBRY-SM101A/K1W03 \
CLBRY-SM101A/K1W04 \
CLBRY-SM101A/K1WKA

[Bug cobol/119335] cobol frontend ignores -M

2025-05-09 Thread jklowden at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119335

James K. Lowden  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
 Ever confirmed|0   |1
 CC||jklowden at gcc dot gnu.org
   Last reconfirmed||2025-05-09