bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Latest CVS causes compile failures


From: Margit Schubert-While
Subject: [open-cobol-list] Latest CVS causes compile failures
Date: Sun Feb 29 08:37:01 2004

Compile failures caused by trying to align items.
This is immediately apparent with redefines.
This is WRONG.
eg.
01 Blah.
  03  f1 pic x.
  03 f2 pic s9(4) comp.
  03 f3 pic s9(4) comp-5.
  03 f4 pic s9(3) comp-3.
  03 f5 usage comp-2.
  03 f6 usage index.
  03 f7 usage pointer.

Assuming comp-2 to be implemented this gives :
1 + 2 + 2 + 2 + 8 + 4 + 4 (arguably 8 on a 64 bit implementation)
This gives 23 bytes. No more, no less.
The compiler may NOT change allocation/alignment UNLESS
advised to do so by the SYNCHRONIZED statement and then
ONLY for certain "-std=" options. (With MF, only in combination
with the IBMCOMP option, which equates to std=mvs, otherwise
ignored)
Problem is cb_field_align_size in tree.c. Changing this to
always return 1 at least allows correct group/item sizes.
(But is, of course, not the correct fix; however, this allows my
apps to compile/run again)

Roger While




reply via email to

[Prev in Thread] Current Thread [Next in Thread]