Skip to content

Commit

Permalink
add new flags to output dependencies
Browse files Browse the repository at this point in the history
Flags following gcc options: -M to output deps only, -MD to output
  deps while compiling (in .d files), -MP to output phony targets, -MG
  to keep missing copybooks, -MQ <target> to Makefile-quote target

Additional flags specific to GnuCOBOL: -fcopybook-deps outputs only
copybook names instead of file paths. -fcopybook-deps also forces -E.
  • Loading branch information
lefessan committed Mar 17, 2024
1 parent 89c45a3 commit 68c30e6
Show file tree
Hide file tree
Showing 12 changed files with 588 additions and 109 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ jobs:
path: _build/install.log

- name: check
continue-on-error: true
run: |
cd _build/tests
make check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" || (echo "not all tests passed")
make check
make test
shell: msys2 {0}


- name: Upload testsuite.log
uses: actions/upload-artifact@v3
if: failure()
with:
name: testsuite.log
path: _build/tests/testsuite.log
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ NEWS - user visible changes -*- outline -*-
** New option -fdefault-file-colseq to specify the default
file collating sequence

** New dependency options: output COPY dependencies of COBOL files with
-M to only print dependencies without compiling, -MD to print
dependencies which compiling, -MP to add phony -targets, MQ to
quote Makefile-specific characters and -MG to keep -missing
copybooks. More specific is -fcopybook-deps to print only dependency
names as they appear after COPY instead of the exact filename.

* More notable changes

** execution times were significantly reduced for the following:
Expand Down
15 changes: 15 additions & 0 deletions cobc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@

2024-03-15 Fabrice Le Fessant <[email protected]>

* cobc.c: add new flags to output dependencies following gcc: -M to
output deps only, -MD to output deps while compiling (in .d files),
-MP to output phony targets, -MG to keep missing copybooks,
-MQ <target> to Makefile-quote target
* flags.def: -fcopybook-deps outputs only copybook names instead
of file paths. -fcopybook-deps also forces -E, -foneline-deps,
-MT=copybooks, disables errors on missing copybooks and removes
output on stdout.
* error.c (print_error_prefix): add cobc_slashify to replace backslashes
by slashes, only if COB_IS_RUNNING_IN_TESTMODE is set.
* typeck.c (check_argument_conformance): check that param is well defined
to prevent a segfault

2024-02-19 Boris Eng <[email protected]>

* parser.y (screen_value_clause): replaced basic literals by literals
Expand Down
Loading

0 comments on commit 68c30e6

Please sign in to comment.