Skip to content

Commit

Permalink
Tweaks to please the CI...
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeclerck committed Jun 20, 2024
1 parent 57cf6b8 commit 579e8e5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5429,7 +5429,11 @@ print_fields (struct cb_field *top, int *found)
for (; top; top = top->sister) {
/* hiding internal fields, when not referenced */
if (top->level == 0
#if 0 /* CHECKME: ignoring even if count > 0 ? */
|| (top->flag_internal_register && !top->count)) {
#else
|| (top->flag_internal_register)) {
#endif
continue;
}
if (*found == 0) {
Expand Down Expand Up @@ -5760,7 +5764,11 @@ xref_fields (struct cb_field *top)
for (; top; top = top->sister) {
/* hiding internal fields, when not referenced */
if (top->level == 0
#if 0 /* CHECKME: ignoring even if count > 0 ? */
|| (top->flag_internal_register && !top->count)) {
#else
|| (top->flag_internal_register)) {
#endif
continue;
}
#if 0 /* FIXME: at least in the context of RW flag_filler is not set correct in
Expand Down
3 changes: 3 additions & 0 deletions cobc/codegen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,9 @@ static void
emit_symtab (struct cb_field *f)
{
if (!f->flag_sym_emitted
#if 1 /* CHECKME: do we want to emit internal registers ? */
&& !f->flag_internal_register
#endif
&& f->level >= 1
&& f->level != 66
&& f->level != 78
Expand Down
10 changes: 6 additions & 4 deletions tests/testsuite.src/run_misc.at
Original file line number Diff line number Diff line change
Expand Up @@ -8401,7 +8401,6 @@ Dump Program-Id sub1 from prog.cob compiled MMM DD YYYY HH:MM:SS

WORKING-STORAGE
**********************
77 RETURN-CODE +000000000
01 ZRO 000000000
01 HEXV 013
01 TEST-BASED. <NULL> address
Expand Down Expand Up @@ -8465,7 +8464,6 @@ Dump Program-Id sub2 from sub2.cob compiled MMM DD YYYY HH:MM:SS

WORKING-STORAGE
**********************
77 RETURN-CODE +000000000
01 ZRO 000000000
01 HEXV 013
01 IDX 000000000
Expand Down Expand Up @@ -8545,7 +8543,6 @@ FD FLATFILE

WORKING-STORAGE
**********************
77 RETURN-CODE +000000000
77 MAX-SUB 0006
77 CUST-STAT ALL ZEROES
77 REC-NUM 0001
Expand Down Expand Up @@ -8592,6 +8589,9 @@ END OF DUMP - prog

])

#FIXME: should have the following as first item of WORKING-STORAGE
#77 RETURN-CODE +000000000

AT_CHECK([gcdiff -U reference tstdump.dump], [0], [], [])

# using both
Expand Down Expand Up @@ -8916,7 +8916,6 @@ Dump Program-Id prog from prog.cob compiled MMM DD YYYY HH:MM:SS

WORKING-STORAGE
**********************
77 RETURN-CODE +000000000
01 P2 0x0000000000000000
01 TAB-ADR-COUNT +0008
INDEX TAB-ADR-IND +000000001
Expand Down Expand Up @@ -9032,6 +9031,9 @@ END OF DUMP - prog

])

#FIXME: should have the following as first item of WORKING-STORAGE
#77 RETURN-CODE +000000000

AT_CHECK([gcdiff -U reference dumpall.txt], [0], [], [])

AT_CLEANUP
Expand Down

0 comments on commit 579e8e5

Please sign in to comment.