forked from OCamlPro/gnucobol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
harding CALL statements, improving handling of not passed arguments a…
…nd implementing EC-PROGRAM-ARG-MISMATCH cobc: * codegen.c (output_entry_function): if COBOL CALL convention is used, then only use local pointers for specifying not-passed arguments, improving support for omission of trailing (optional) parameters in CALL * config.def, codegen.c, typeck.c: added using-optional dialect option; if set to "ok" the check for not-passed arguments will only be done on program entry for all parameters not explicit specified as OPTIONAL * parser.y (_procedure_optional): added checks for cb_using_optional, if OPTIONAL used and set to "warning", then reset it to "ok" after first warning * codegen.c (output_entry_function): generate checks for EC-PROGRAM-ARG-MISMATCH validating that non-optional arguments are passed and if passed then checks its minimal size config/general: add option using-optional libcob: * common.c (cob_check_linkage_size), common.h: new function to check for EC-PROGRAM-ARG-MISMATCH * common.c (raise_arg_mismatch): new function to provide a "virtual" module entry for better error messages * common.c (call_exit_handlers_and_terminate, cob_runtime_error): pass information about arguments to handlers written in COBOL * common.c (cob_stack_trace_internal): slightly improved stack output
- Loading branch information
sf-mensch
committed
Jul 28, 2023
1 parent
6f07531
commit b889a49
Showing
28 changed files
with
613 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,22 @@ | |
|
||
* typeck.c (search_set_keys): improving SEARCH ALL syntax checks | ||
|
||
2023-07-25 Simon Sobisch <[email protected]> | ||
|
||
* codegen.c (output_entry_function): if COBOL CALL convention is | ||
used, then only use local pointers for specifying not-passed | ||
arguments, improving support for omission of trailing (optional) | ||
parameters in CALL | ||
* config.def, codegen.c, typeck.c: added using-optional dialect option; | ||
if set to "ok" the check for not-passed arguments will only be done | ||
on program entry for all parameters not explicit specified as OPTIONAL | ||
* parser.y (_procedure_optional): added checks for cb_using_optional, | ||
if OPTIONAL used and set to "warning", then reset it to "ok" after first | ||
warning | ||
* codegen.c (output_entry_function): generate checks for | ||
EC-PROGRAM-ARG-MISMATCH validating that non-optional arguments are | ||
passed and if passed then checks its minimal size | ||
|
||
2023-07-24 Simon Sobisch <[email protected]> | ||
|
||
* parser.y (entry_statement): don't check parameter address | ||
|
Oops, something went wrong.