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 authored and ddeclerck committed Sep 19, 2024
1 parent f36f150 commit 8833591
Show file tree
Hide file tree
Showing 12 changed files with 595 additions and 108 deletions.
7 changes: 7 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,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
Expand Up @@ -114,6 +114,21 @@
* codegen.c: handle profiling code generation under the
cb_flag_prof guard

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 8833591

Please sign in to comment.