forked from OCamlPro/gnucobol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NEWS
1144 lines (766 loc) · 41.3 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
NEWS - user visible changes -*- outline -*-
GnuCOBOL development (currently as 4.0-early-dev)
*** this version has no backward compatibility to modules created with
a previous version; the internal library-number was therefore increased
(libcob-5 instead of libcob-4).
*** anything may still change during development of this version,
including incompatible changes ***
* New GnuCOBOL features
** file handling: added backends for ODBC (so far PostgrSQL, MySQL, SQLite,
MSSQL) and OCI, along with new directory COB_SCHEMA_DIR containing the
necessary internal schema files to match the file definition to the
database table
** build-system: it is now possible to build GnuCOBOL with multiple handlers
for ORGANIZATION INDEXED, for example --with-visam --with-db --with-odbc
and then define at runtime which handler to use, the default is set with
--with-indexed=<handler>; if no handler is requested the system checks for
available handlers and use the first applicable - or none, which removes
the need to specify --without-db
** new experimental file handler LMDB
** delay-load of libraries (so far for ORGANIZATION INDEXED, planned: XML,
JSON, SCREENIO)
** option for guaranteed storage of level 01/77 items in memory and
their alignment (defaults to "fast C")
* runtime checks: previously conditions missed the generation of runtime checks,
leading to possible out-of-bounds or null-access there, this was fixed
* The old OpenCOBOL EXTFH interface built in via --with-seqra-extfh
* and --with-index-extfh is obsolete and will be removed in the
* next major release
* many internal changes, changing some defaults (TODO: list in detail)
Open Plans:
* start of C standardization
* codegen: split of functions (big modules into multiple C functions)
* ...
GnuCOBOL 3.2
* New GnuCOBOL features
** Support for the EXTFH interface was heavily improved, now also supporting
FH--FCD and FH--KEYDEF, fixed use of different attributes and changing
pointers and now supports - for 32-bit builds - an internal conversion between
FCD2 and FCD3 for cases where existing programs are coded with FCD2
** TODO - More to add
** New intrinsic functions
BIT-OF, BIT-TO-CHAR, HEX-OF, HEX-TO-CHAR
** Support of COBOL 202x directive COBOL-WORDS
** Support of additional $SET directives: ODOSLIDE
* Changes that potentially effects recompilation of existing programs:
** the reserved word list and intrinsic functions was updated, especially
to cater for new features of COBOL 202x; if compiling with any non-strict
dialect you may need to unreserve any conflicting words / functions
** in 64-bit environments, the maximum field size was increased from
268435456 bytes (999999998 bytes for OCCURS UNBOUNDED) to 2 GB
** in 64-bit environments, the default size for BY VALUE parameters has changed:
If no explicit SIZE IS clause is specified,
old behavior: parameter passed as 32-bit value
new behavior: parameter passed as 64-bit value
To specify a 32-bit BY VALUE parameter, change the COBOL source to use
SIZE IS 4. To continue to rely on the default size, both caller and
callee modules that use BY VALUE must be compiled with the same version of
GnuCOBOL, either prior this release, or since.
* Changes to the COBOL compiler (cobc) options:
** the compile flag -fodoslide was moved to a dialect configuration,
while -fodoslide still works as before it is now implied with
-std=ibm/mvs/bs2000, for compatibility to previous behavior compile
with -fno-odoslide
** the GnuCOBOL extension of auto-adding the RECURSIVE attribute
if a program potentially calls its own PROGRAM-ID was moved
to a dialect option; it is now only active with -std=default
(and raises a warning as previously with -Wextra); if you want
to use this extension for other dialects use the new
-fself-call-recursive=warning (or "ok")
** adjustments to warning options:
-Wconstant-expression was changed to a group warning and includes
the new, previously integrated, -Wconstant-numlit-expression
** new compiler command line option to list the known runtime exception names
and fatality `cobc --list-exceptions`
* Important Bugfixes:
** for dialects other than the GnuCOBOL default different reserved "alias" words
were not usable, for example SYNCHRONIZED or COMPUTATIONAL. This was fixed
and reserved words updated for the dialects "acu" (to ACUCOBOL-GT 10.4),
"ibm" (to Enterprise COBOL 6.3) and "mf" (to Micro Focus Visual COBOL 6.0)
** for all "lax" updates SYNC was handled even if commonly ignored by the strict
dialects, this was fixed so SYNC is ignored depending on the dialect
** COBOL programs compiled with versions before GnuCOBOL 3 that used files with
ORGANIZATION INDEXED or RELATIVE crashed when executed with newer versions,
this has been fixed so that all modules compiled with GnuCOBOL 2.2 can be
executed with GnuCOBOL 3.2
** execution times of INSPECT that use big COBOL fields (multiple KB) were
heavily cut down
* Listing changes
** the timestamp in the header was changed from ANSI date format like
"Tue Sep 28 09:49:43 2021" to formatted time (year after day); this may be
changed during `configure` with adding a define to CPPFLAGS, for using the
old format `-DLISTING_TIMESTAMP_ANSI`, for an explicit format (cut at 26
characters) for example date only: `-DLISTING_TIMESTAMP_FORMAT="%Y-%m-%d"`
* More notable changes
** the call-stack on error / in the dump file now contains all parameters given
to the program via command line options, if any
** the dump that is created on abort for all programs that were compiled with
-fdump can be explicit disabled by setting COB_DUMP_FILE=NONE; it is
automatically disabled if the process ends upon signals SIGINT/SIGTERM and
now also disabled upon SIGHUP/SIGPIPE
** source references shown in diagnostic messages during runtime, the tracing
options and during debugging were extended, for example each executed WHEN,
VARYING and UNTIL phrases are now seen
* Known issues in 3.2 (and 3.1)
** testsuite:
* if built with vbisam, cisam or disam, depending on the version used, some
tests will lead to UNEXPECTED PASS, while others may fail
* possibly failing tests (false positives):
* temporary path invalid
* compiler outputs (assembler)
* compile from stdin
* NIST: OBNC1M.CBL false positive (the test runner uses a nonportable way of
emulating a program kill)
** the recent additions of ">> TURN" and "variable LIKE variable" may not work
as expected in all cases
** features that are known to not be portable to every environment yet
(especially when using a different compiler than GCC)
* function with variable-length RETURNING item
* USAGE POINTER, which may need to be manually aligned
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GnuCOBOL 3.1.2 released (20201223)
GnuCOBOL 3.1.1 released (20201208) containing INITIALIZE bug #694
GnuCOBOL 3.1 released (20201111) had build issues that were fixed
* New GnuCOBOL features
** XML GENERATE statement
(note: runtime support needs additional library libxml2)
** JSON GENERATE statement
(note: runtime support needs additional library cJSON or JSON-C)
** CONTINUE AFTER statement (COBOL 202x) implemented, also handle fractions
of seconds in C$SLEEP now
** TYPEDEF and SAME AS (COBOL 2002) implemented, including the MicroFocus
and RM/COBOL variants
** >>TURN (COBOL 2002) directive implemented, allowing some exception checks
to be turned on/off per source as desired
** Improved support for different compiler extensions (ACUCOBOL, IBM,
Fujitsu, MicroFocus COBOL, Microsoft COBOL, RM/COBOL, CA Realia and more)
including EXHIBIT / EXHIBIT NAMED
** support for MicroFocus extension "LOCAL-STORAGE implies RECURSIVE"
defaults to "on" for `-std=mf` and `-std=mf-strict`!
** file handling: include support for a callable EXTFH interface also provided
by several compilers including Micro Focus
This allows users to insert an external file handler while retaining
all the normal COBOL I/O functions with a possible callback to libcob.
To have the compiled program call `yourfh()` for file I/O use:
`cobc -fcallfh=yourfh`
In turn `yourfh()` may call `EXTFH()` to use I/O functions from GnuCOBOL.
The external file handler can also be directly invoked from COBOL, too,
using `CALL "EXTFH"`.
** Note: Not each flag contained in the FCD3 is handled already **
** file handling: added support for [RE]WRITE FILE file FROM source
** screen i/o: initial mouse support (for details see runtime.cfg),
use of CURSOR clause in SPECIAL-NAMES for positioning on ACCEPT
** the configure option --with-cjson was replaced by
--with-json with arguments, allowing new JSON-C handler to be used
** new configure option --enable-hardening to either enable GNU C's
hardening options or leave as-is, or disable (which previous versions
effectively did)
** ensure runtime checks are generated - nder some conditions the
generated code had excluded runtime checks, permitting out-of-bounds or
null-pointer accesses
** Breaking change: previously the return-code of registered error handlers
(CBL_ERROR_PROC or ... ) were ignored. This was changed according to the
documentation for CBL_ERROR_PROC -> a RETURN-VALUE of ZERO skips further
error handlers to be called, including the internal one.
** build system: defaults.h is not created or included anymore, all configure
provided defines are now found in the single header config.h
** cobc -g (and configure --enable-debug) use the most expressive
debugging options available on the system
** the interal Xref got a huge speedup, has all references in ascending order
now and includes the total amount of direct references
** the interal listing got a speedup and has all error references in
ascending order now
** adjustments to cobc's warning options:
-Wdangling-text "new" option to enable "source text after program area",
not included in -Wall any more
-Wno-ignored-error allows to suppress messages that normally would be an
error and only allowed because they are never executed
-Wimplicit-define and -Wcorresponding are now enabled by default
** COPY statement handling:
* copybook names that contain an extension aren't search with additional
extensions [as post-rc1-change this may be set to old behavior by
defining COB_MULTI_EXTENSION when building GnuCOBOL/cobc]
* library names are now tested for environment "COB_COPY_LIB_libname",
allowing the directory to specified externally (also as no-directory
by exporting with empty value) and has a fallback (with a warning) to
be effectively ignored (as previous versions did this)
** fixes and enhancements for dump generation
** tested and adjusted to work on more systems (OS + compilers)
** the GnuCOBOL Manual has been updated
* Removed functions
** SCREEN SECTION, REPORT-WRITER module: removed non-standard extension
"LINE / COL signed-integer" (inadvertently available since 2.2/3.0rc1);
which will now raise an error "unsigned integer expected";
if used replace by standard "LINE / COL +/- integer"
* Obsolete features (will be removed in the next version if no explicit user
requests are raised)
** support for Borland C compiler and linker
** -fif-cutoff flag for cobc (currently disabled, see entry below in 3.0rc1)
** old OpenCOBOL-only-EXTFH
* Changes to the COBOL compiler (cobc) options:
** new options:
-f[no]-diagnostics-show-option, enabled by default, shows the
command line option responsible for the diagnostic message
TO BE MERGED (not in trunk yet):
-f[no]-ec=exception-name to tune the exception checks similar to the >>TURN
directive, you may also leave out the "EC-" prefix here, example to
enable all checks but disable all bound checks but OCCURS DEPENDING ON:
cobc -debug -fno-ec=bound -fec=bound-odo
** adjustments to warning options:
-Wextra "new" option to enable every possible warning that is not dialect
specific (this option used to be called -W)
-Wadditional new warning group for all warnings that don't have a group
on their own
-Wno-error and -Wno-error=<warning> to treat (specific <warning>s) not as error
* Changes in the COBOL runtime (libcob)
** Messages from the COBOL runtime are also translated now (if installed).
To prevent this disable translations in general with using the configure
option --disable-nls (or by deactivating ENABLE_NLS in config.h).
** libcob.h does no longer auto-include gmp.h (behavior since 2.x), if you link
against libcob and need cob_decimal include gmp.h/mpir.h yourself before;
otherwise you do not need it in your include path any more
** For LINE SEQUENTIAL files the behavior has been changed to always split lines
longer than the record area into multiple records.
Setting COB_LS_SPLIT = false will have the old behavior of truncating the record.
* New build features
** Running the internal tests by make check now fails if the testsuite has any
unexpected result.
** The modules and test programs in the NIST COBOL-85 test suite (tests/cobol85)
may now be build and/or tested and/or the test results checked separately.
You now may also run the tests with a previous installed version of GnuCOBOL
(or a version specified by a manual temporary setup).
For details see tests/cobol85/README.
** new configure option --with-math=ARG to specify which math multiple precision
library is to be used, where ARG may be: check (default), gmp, mpir
** new configure options --with-xml2 / -without-xml2 to explicit force/disable
XML runtime support, otherwise it will be included if found as working
** new configure option --with-json / -without-json to explicit force/disable
JSON runtime support, otherwise it will be included if found as working
Note: As a special case you may built-in cJSON by placing its source in
the folder "lib". If it is included there, this version will be compiled
into libcob. It may be enforced with --with-json=local, like --with-json==cjson
and --with-json==json-c enforce the given library.
** To adjust the build system for GMP/MPIR you may use the new variables
GMP_CFLAGS / MPIR_CFLAGS and GMP_LIBS / MPIR_LIBS.
If unset configure will try pkg-config.
** To adjust configure to use libxml2 you may use the new variables XML2_CFLAGS
and XML2_LIBS. If unset configure will use pkg-config / xml2-config.
** To adjust configure to use libcjson you may use the new variables CJSON_CFLAGS
and CJSON_LIBS, similar JSON_C_CFLAGS and JSON_C_LIBS for libjson-c.
If unset configure will use pkg-config.
** Any time after `make` you can call `pre-inst-env` script to use the still-
uninstalled binaries. Samples:
pre-inst-env cobc -xj prog.cob
pre-inst-env cobcrun -M prog start
pre-inst-env may also be called without parameters to start a new shell
session with the environment adjusted to use the uninstalled version.
* Too much bug fixes to list here (please check ChangeLogs for full details),
includes the following CVEs:
** compiler (may be triggered with special crafted source files)
CVE-2019-14468, CVE-2019-14486, CVE-2019-14528, CVE-2019-14541,
CVE-2019-16396, CVE-2019-16395
* GnuCOBOL's getopt implementation honors POSIXLY_CORRECT now:
if set to any value the option parsing in cobc, cobcrun and CBL_GC_GETOPT
stops at the first nonoption, otherwise it stays with the old behavior and
re-orders nonoptions to the end)
* new configure option --with-std= lets to build into the compiler the default
COBOL dialect if -std= is not provided at compile time. If unspecified the
default is 'default'
* new configure option --with-file-format=mf lets to build into the compiler
the default file format. If not provided then the old GnuCOBOL 3 format files
are used and for Variable length SEQUENTIAL or RELATIVE files the file is
not portable across different platforms.
Using 'mf' (Microfocus) format, data files are portable across platforms.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GnuCOBOL 3.0-rc1 released (20180422)
* New GnuCOBOL features
** REPORTWRITER module added
** INDEXED file handling: added support for sparse and split keys
** file handling: added support for [RE]WRITE FILE file FROM source
** DISPLAY ... UPON PRINTER may be redirected to an external command
(new runtime configuration COB_DISPLAY_PRINT_PIPE) or appended to a file
(new runtime configuration COB_DISPLAY_PRINT_FILE, which takes precedence)
** XML GENERATE statement
(note: runtime support needs additional library libxml2)
** JSON GENERATE statement
(note: runtime support needs additional library cJSON)
** Improved support for different compiler extensions (ACUCOBOL, IBM,
Fujitsu, MicroFocus COBOL, Microsoft COBOL, RM/COBOL and more)
** Parser support for many features of different compilers, for example
PIC 1 / USAGE BIT, ACUCOBOL extensions for graphical controls
VALIDATE statement and much more.
Most of them will be fully implemented in a later version...
** Option to dump (partial) data of modules on abort.
Use new cobc option -fdump=<scope> to prepare the module and optional
use new runtime configuration options COB_DUMP_FILE and COB_DUMP_WIDTH
to adjust the dump.
** C interface: new functions cob_set_runtime_option / cob_get_runtime_option
to set/get special runtime options (currently FILE * for trace and printer
output) or to reload the runtime configuration after changing environment
** file handling: include support for a callable EXTFH interface also provided
by several compilers including Micro Focus
This allows users to insert an external file handler while retaining
all of the normal COBOL I/O functions with a possible callback to libcob.
To have the compiled program call `yourfh()` for file I/O use:
`cobc -fcallfh=yourfh`
In turn `yourfh()` may call `EXTFH()` to use I/O functions from GnuCOBOL.
The external file handler can also be directly invoked from COBOL, too,
using `CALL "EXTFH"`.
** Note: Not all flags contained in the FCD3 are handled already **
* Changed cobc options:
** The option -debug (runtime checks) no longer implies -ftrace (option to
trace program flow of the generated module with COB_SET_TRACE).
You may specify -ftrace[all] along -debug if you want to use this feature.
** The option -E (preprocess file) does not imply an output file any more.
If no output file is explicit specified with -o filename.i the output will
be written to stdout (behavior of versions 1.1 is restored).
Requesting output to stdout explicit by using a dash as output name is
also possible.
** Changed options for listing:
The option -tsymbols was replaced by -ftsymbols and therefore can now also
be explicit deactivated by specifying -fno-tsymbols.
New options for suppressing (or explicit requesting) parts of the listing:
-fno-theader suppress all headers from listing while keeping page breaks
-fno-tmessages suppress warning and error summary from listing
-fno-tsource suppress actual source from listing (for example to only
produce the cross-reference)
** The option -fif-cutoff (option to change generated C sources to use
a label + goto for nested if/else) was deactivated to allow the C compiler
to fully control the program flow.
** Please report if you have a need for this option as it will be **
** removed permanently in the next release of GnuCOBOL otherwise. **
* Changes in the COBOL runtime (libcob)
** updated exception handling, GnuCOBOL now only cleans raised exceptions when
requested by SET LAST EXCEPTION TO OFF
** The standard-format for program tracing was changed and is now adjustable
by the runtime configuration option COB_TRACE_FORMAT.
* New build features
** New test suite for manual tests (especially SCREEN I/O),
run with `make checkmanual`.
Note: You may want to adjust the test runner tests/run_prog_manual.sh which
defaults to xterm in GUI environments and screen in terminal environments.
** new configure option --enable-debug-log to allow *internal* tracing
of GnuCOBOL (intended for developers of GnuCOBOL only)
* Too much bug fixes to list here (please check ChangeLogs for full details).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GnuCOBOL 2.2 released (20170906)
* Move to GPL/LGPL 3
* New GnuCOBOL features (too much to list)
** User Defined Functions, FUNCTION-ID.
** New intrinsic functions
ABSOLUTE-VALUE alias for ABS
CURRENCY-SYMBOL CURRENCY-SYMBOL of the current program
FORMATTED-CURRENT-DATE ISO 8601 datetime function
FORMATTED-DATE ISO 8601 datetime function
FORMATTED-DATETIME ISO 8601 datetime function
FORMATTED-TIME ISO 8601 datetime function
TEST-FORMATTED-DATETIME ISO 8601 datetime function
INTEGER-OF-FORMATTED-DATE date to integer
HIGHEST-ALGEBRAIC now implemented
LOWEST-ALGEBRAIC now implemented
LOCALE-COMPARE now implemented
NUMVAL-F now implemented
TEST-NUMVAL now implemented
TEST-NUMVAL-C now implemented
TEST-NUMVAL-F now implemented
LENGTH-AN alias for BYTE-LENGTH
MODULE-CALLER-ID return the name of the caller
MODULE-DATE current module: compilation date
MODULE-TIME current module: compilation time
MODULE-FORMATTED-DATE current module: formatted datetime
MODULE-ID current module: PROGRAM-ID
MODULE-PATH current module: path on compile time
MODULE-SOURCE current module: name on compile time
MONETARY-DECIMAL-POINT LOCALE based fiscal decimal point
MONETARY-THOUSANDS-SEPARATOR LOCALE based fiscal visual grouping separator
Note:
The functions that are actually available as intrinsic functions depend
on the -std used. Function names that aren't marked as intrinsic functions
by the current -std can be used freely as user defined words or
even as user defined functions.
** New system functions
C$CALLEDBY return the name of the caller
CBL_GC_FORK fork current process (not on Windows)
CBL_GC_WAITPID wait for process to end
CBL_GC_GETOPT (CBL_OC_GETOPT) command line option parser for COBOL
CBL_GC_PRINTABLE (C$PRINTABLE) check if character is printable
CBL_GC_HOSTED (CBL_OC_HOSTED) provides access to C extern variables,
like stdin, errno
CBL_GC_NANOSLEEP CBL_OC_NANOSLEEP
CBL_GET_SCR_SIZE get current terminal size - if any
CBL_READ_KBD_CHAR get character from terminal
CBL_SET_CSR_POS set current position on terminal
x'E4' clear terminal screen
x'E5' ring the bell
** full support of ANSI 85 debugging module:
USE FOR DEBUGGING declarative procedures (only part of the generation if
WITH DEBUGGING MODE is active during compilation) and special register:
01 DEBUG-ITEM.
02 DEBUG-LINE PIC X(6).
02 FILLER PIC X VALUE SPACE.
02 DEBUG-NAME PIC X(30).
02 FILLER PIC X VALUE SPACE.
02 DEBUG-SUB-1 PIC S9(4).
02 FILLER PIC X VALUE SPACE
02 DEBUG-SUB-2 PIC S9(4).
02 FILLER PIC X VALUE SPACE.
02 DEBUG-SUB-3 PIC S9(4).
02 FILLER PIC X VALUE SPACE.
02 DEBUG-CONTENTS PIC X(n).
With "n" being at least 30, size is increased if USE FOR DEBUGGING identifier
is used and the identifier has a longer size.
Note: COB_SET_DEBUG activates the specified debugging sections at runtime
** many new / extended COBOL statements from COBOL2002/2014 and extensions
from different COBOL dialects
** more SWITCHes: from SWITCH-01 to SWITCH-36 and its variants from many
COBOL dialects
** more IEEE numeric types added, FLOAT-DECIMAL-16, FLOAT-DECIMAL-34, etc
** more literal types added, numeric boolean etc.
** most of the COBOL 2014 spec Compiler Directive Facility is in
** optional: stricter syntax checks
** Optimization: in cases where the condition in IF/WHEN is resolved down
to TRUE or FALSE at compile time cobc doesn't emit any code
** refactored and extended compiler and runtime messages with available
translations (currently to Spanish, Portuguese and Dutch, partial to German)
** screen IO: many extended ACCEPT DISPLAY and SCREEN SECTION changes
** Direct call interface for C:
CALL-CONVENTION for CALLs and PROCEDURE DIVISION
ENTRY-CONVENTION for PROCEDURE DIVISION and ENTRY statement
SIZE of parameters specified for CALL ... BY VALUE
RETURN NOTHING for calling void functions
RETURN ADDRESS OF VAR for calling functions returning a pointer
PROCEDURE DIVISION RETURNING OMITTED -> callable as void function
** Much, much more!
* New cobc options:
** New -std options:
cobol2014 COBOL 2014 Standard
xopen X/Open COBOL Standard
mf-strict Micro Focus COBOL compatibility - strict
ibm-strict IBM COBOL compatibility - strict
ibm-strict MVS/VM COBOL compatibility - strict
acu ACUCOBOL-GT compatibility
acu-strict ACUCOBOL-GT compatibility - strict
bs2000 BS2000 COBOL compatibility (back again)
bs2000-strict BS2000 COBOL compatibility - strict
rm RM-COBOL compatibility
rm-strict RM-COBOL compatibility - strict
Note:
The GnuCOBOL compiler tries to limit both the feature-set and reserved words
to the specified compiler when the "strict" dialects are used.
COBOL sources compiled with these dialects are therefore likely to compile
with the specified compiler and vice versa: sources that were compiled on
the specified compiler should compile without any issues with GnuCOBOL.
With the "non-strict" dialects GnuCOBOL will activate the complete
feature-set where it doesn't directly conflict with the specified dialect,
including reserved words and GnuCOBOL specific extensions.
COBOL sources compiled with these dialects therefore may work only
with GnuCOBOL. COBOL sources may need a change because of rich feature-set
and reserved words in GnuCOBOL, otherwise offending words may be removed
by `-fno-reserved=word`.
COBOL-85, X/Open COBOL, COBOL 2002 and COBOL 2014 are always "strict".
** New listing options:
-t listing, -T wide listing, --tlines=lines, lines per page of listing;
-Xref now handled internally, if you want to use cobxref define
COB_EXTERNAL_XREF during configure
Note: -P, generate preprocessor listing, is still available (and improved)
** All compiler configuration flags may be set on command line
to override a specific setting of the current -std, see cobc --help
** All warnings can be explicit enabled/disabled or even marked as error,
see cobc --help, examples:
-Wunreachable warn about likely unreachable statements
-Wno-dialect do not warn about dialect specific issues
-Werror treat all warnings as errors
-Werror=<warning> treat specified <warning> as error
** Options for the C compiler/linker:
-K <entry>, compile entry point as static (resolve at link time)
-A, add options to C compile phase
-Q, add options to C link phase
** Miscellaneous
-i -info, display build/environment
-D define symbol for Compiler Directive Facility
-j -job=args, run job after compile
input filename of '-' reads source from standard in
For more: see cobc --help
* Changed cobc options:
** The option -ffunctions-all (allow use of intrinsic functions without
FUNCTION keyword) was replaced by -fintrinsics=ALL.
-fintrinsics allows to also specify that only specific functions may
be used without the FUNCTION keyword.
The preferred option is to not use these cobc options at all but to
specify this within the COBOL code (CONFIGURATION SECTION. REPOSITORY.)
* New cobcrun options:
-i -info, display build/environment
-r -runtime-config, display runtime configuration
-c -config, set runtime config from file
-M -module, set path/module name when looking for entry
* New build features
make test downloads NIST testsuite if necessary
now usable with parallel builds (make -j4 test)
make checkall runs both the internal and the NIST testsuite
** testsuite defaults to coloured output
** Windows(tm) Visual Studio build support files added,
options to validate the software generated with VS against both test suites
** removed maintainer mode - if files need a rebuild because of a change
they are always rebuild
** help2man, bison and flex are checked during configure,
if they need to be invoked and are missing a useful error message is given
** All files created by GnuCOBOL runtime use the same file permission settings
now: COB_FILE_MODE which was changed to 0666
** The maximum number of fields passed via CALL changed from hard-wired 64 fields
to a configuration option (defaulting to 192, current max. 252)
** changed unix package name from "gnu-cobol" to "gnucobol"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GnuCOBOL 1.1 released (20140118)
* Change unix package name to gnu-cobol, and project to GnuCOBOL
* for a full list of changes see
https://gnucobol.sourceforge.io/faq/
#what-are-the-differences-between-opencobol-1-1-and-gnucobol-1-1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OpenCOBOL 1.1 released (20090206)
* Note: was tagged as pre-release and later on as full version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OpenCOBOL 1.0 released
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changes in OpenCOBOL 0.33
* New compile option '-x'. This causes the compiler to produce an
executable program. '-fmain' is deprecated.
* Remove long option --verbose. Use '-v' for verbosity. Problem is
with getopt_long_only which does not like eg. -mv
* New conformity option -std=bs2000.
* FUNCTION is implemented. See cobc/reserved.c for a list of what is
implemented.
* Nested programs are partially supported.
* LINAGE is implemented.
* EXTERNAL on FD is implemented.
* SAME RECORD AREA is implemented.
* New config variables -
"perform-osvs", "sticky-linkage". These are
activated for -std=ibm and -std=mvs.
"relax-level-hierarchy". Allows mismatched data
description level numbers. Activated for
-std=mf, ibm, mvs and bs2000.
* Support for non-gcc compilers.
* Large file support, system dynamic loading and Berkeley DB inclusion
are default for the configure.
ie. ./configure assumes --with-db --with-lfs64 --with-dl
* New configure option --with-patch-level=<n>
Default is 0.
* At run time, version checking is done. ie. When executing/loading
Cobol programs, the version (eg. 0.33) and the patch level (eg. 0)
are checked against the OC library version/patch level.
* Libtool is not required for systems that support native dynamic
loading. This includes GNU/Linux, Cygwin and MingW amongst others.
* Note to developers : See README for required software versions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changes in OpenCOBOL 0.32
* Stability update - See individual ChangeLogs
* New internal register - NUMBER-OF-CALL-PARAMETERS
* New config variables - larger-redefines-ok, relaxed-syntax-check
* Powerpc changes - We now pass all OC and Cobol85 tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changes in OpenCOBOL 0.31
* Stability update - See individual ChangeLogs
* New driver program - "cobcrun"
This allows all application programs to be compiled as
modules and driven by "cobcrun" similar to MF's "cobrun".
Syntax - cobcrun <MAINPROG> [Arguments to program "MAINPROG"]
As "cobcrun" is linked with the static version of OpenCOBOL
libraries, it is easier to maintain concurrent versions on the
same system.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changes in OpenCOBOL 0.30
* Installation changes
** No longer use readline.
** No longer use run-time configuration file (libcob.conf)
** libdb is now optional.
Use the new configure option --with-db1 to link with libdb1.
Use the new configure option --with-db to link with libdb.
Otherwise, libdb will not be linked, and indexed files and
SORT/MERGE statements will not work.
*** New subdirectory `config' will be installed under
$prefix/share/gnucobol.
** Compatibility changes
*** New -std options:
default used when you omit -std
cobol85 COBOL 85 Standard
cobol2002 COBOL 2002 Standard
ibm IBM COBOL compatibility
mf Micro Focus COBOL compatibility
v023 OpenCOBOL 0.23 compatibility
*** Compile-time options can be stored in a "config" file.
See config/default.conf for details.
*** Binary data items are now big endian.
The config option `binary-byteorder' controls this.
*** Numeric sign of USAGE DISPLAY items has been changed as follows:
Positive: 0123456789 Negative: pqrstuvwxy
The config option `display-sign' controls this.
*** Data items defined in the working-storage section are
initialized at the beginning of program by default.
The config option `auto-initialize' controls this.
*** SORT statement now creates a temporary file in /tmp for sorting
and removes it after sorting.
** Feature changes
*** COPY statements try to complement the following file extensions:
.CBL, .COB, .cbl, or .cob.
*** COPY / REPLACE statements are reimplemented for better replacement.
*** SPECIAL-NAMES. FORMFEED IS ...
*** ALPHABET ... IS EBCDIC.
*** EXTERNAL clause.
*** SHARING clause.
*** USAGE COMP-5 and COMP-X.
*** USAGE POINTER and ADDRESS OF operator.
*** LENGTH OF operator.
*** PROCEDURE DIVISION USING BY REFERENCE/CONTENT/VALUE.
*** DISPLAY ... ENVIRONMENT-NAME. ACCEPT ... ENVIRONMENT-VALUE.
*** COLLATING SEQUENCE in the SORT and MERGE statements.
*** EXIT PERFORM [CYCLE] statement.
*** SORT table.
*** OPEN ... WITH NO REWIND / WITH LOCK recognized, though not working.
*** Literal concatenation (the `&' operator).
** Compiler changes
*** New compiler environment variable TMPDIR.
*** New compiler environment variable COB_LDFLAGS.
*** The runtime environment variable COB_CONFIG_FILE has been removed.
*** New runtime environment variable COB_DYNAMIC_RELOADING.
*** New compiler option `--list-reserved', which list all reserved words.
*** New compiler option `-conf', which specifies the config file.
*** New compiler option `-ext', which specifies the copy file extension.
*** The compiler option `-O' now does C level optimization.
*** New compiler option `-O2', which does further C level optimization.
*** New compiler option `-L' and `-l', which are passed to the C compiler.
*** New compiler option `-ftrace', which display section names at run time.
*** New compiler option `-fsyntax-only', which does syntax error check
only without any output.
*** New compiler option `-fstatic-call', which is equivalent to `-static'.
*** New compiler option `-fdebugging-line', which enables debugging lines.
*** New compiler option `-fsource-location', which includes source location
in the output.
*** New compiler option `-fline-directive', which includes line directive
in the output.
*** New compiler option `-fruntime-inlining', which is the replacement
of obsolete options `-finline-move' and `-finline-get-int'.
*** New compiler option `-w', which inhibits warnings.
*** New compiler option `-Wredefinition', which warns redefined names.
*** The compiler options `-static' and `-dynamic' are obsolete.
*** The compiler option `-column' removed.
** Many improvement for compatibility.
** Many many bug fixes.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Changes in OpenCOBOL 0.23
** Installation changes
*** We use the GNU MP library again.
** Run-time library changes
*** `cob_resolve' now search the main program for the module name.
** Bug fixes
*** Duplicate use of intermediate field variables.
*** fseek issues on the MinGW environment.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Changes in OpenCOBOL 0.22
** Installation changes
*** We no longer depend on the GNU MP library.
Decimal arithmetic is done by using `long long'.
** Compiler changes
*** Alphabet-name has been implemented.
*** Variable-length table has been implemented.
*** De-editing (move numeric-edited to numeric) has been implemented.
** Bug fixes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Changes in OpenCOBOL 0.21
** Installation changes
*** New configure argument --with-lfs64.
** Compiler changes
*** New option -std, which specifies which COBOL standard to use.
Currently the following standards are available:
gnu GnuCOBOL (default)
cobol85 COBOL 85
cobol2002 COBOL 2002
mvs IBM COBOL for MVS & VM
*** New option -O, which enables some optimization.
*** New option -debug, which enables run-time error checking.
*** New option -Wobsolete, which reports obsolete features.
*** New option -Warchaic, which reports archaic features.
*** -Wnext-sentence has been removed. Use -Warchaic instead.
*** -fdebugging-line has been removed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Changes in OpenCOBOL 0.20