Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .github/workflows/ibm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ jobs:
run: |
sed -i '/AT_SETUP(\[runtime check: write to internal storage (1)\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_misc.at

sed -i '/AT_SETUP(\[CALL C with callback, PROCEDURE DIVISION EXTERN\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_misc.at
sed -i '/AT_SETUP(\[CALL C with callback, ENTRY-CONVENTION EXTERN\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_misc.at
sed -i '/AT_SETUP(\[System routines for files\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_file.at
sed -i '/AT_SETUP(\[INDEXED file numeric keys ordering\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_file.at
sed -i '/AT_SETUP(\[CALL BY VALUE numeric literal with SIZE IS\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_extensions.at
sed -i '/AT_SETUP(\[CALL BY VALUE to C\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_extensions.at
sed -i '/AT_SETUP(\[EXHIBIT statement\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_extensions.at
sed -i '/AT_SETUP(\[EXAMINE TALLYING\])/a AT_SKIP_IF(\[true\])' tests/testsuite.src/run_extensions.at

- name: Run testsuite
run: |
make -C _build check TESTSUITEFLAGS="--jobs=$(($(nproc)+1))" || \
Expand Down
7 changes: 6 additions & 1 deletion cobc/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -6597,7 +6597,12 @@ cb_build_assign (const cb_tree var, const cb_tree val)

p = make_tree (CB_TAG_ASSIGN, CB_CATEGORY_UNKNOWN,
sizeof (struct cb_assign));
p->var = var;
if (CB_FIELD_P (var)) {
struct cb_field *f = CB_FIELD (var);
p->var = cb_build_reference (f->name);
} else {
p->var = var;
}
p->val = val;
return CB_TREE (p);
}
Expand Down
16 changes: 16 additions & 0 deletions libcob/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -7351,6 +7351,14 @@ cob_sys_read_file (unsigned char *file_handle, unsigned char *file_offset,

COB_CHK_PARMS (CBL_READ_FILE, 5);

#ifdef WORDS_BIGENDIAN
/* if value is passed as numeric literal, it becomes an 'int' so value is in 4th byte */
if (flags[0] == 0
&& flags[1] == 0
&& flags[2] == 0)
flags += 3;
#endif

memcpy (&fd, file_handle, 4);
if ((*flags & 0x80) != 0) {
struct stat st;
Expand Down Expand Up @@ -7402,6 +7410,14 @@ cob_sys_write_file (unsigned char *file_handle, unsigned char *file_offset,

COB_CHK_PARMS (CBL_WRITE_FILE, 5);

#ifdef WORDS_BIGENDIAN
/* if value is passed as numeric literal, it becomes an 'int' so value is in 4th byte */
if (flags[0] == 0
&& flags[1] == 0
&& flags[2] == 0)
flags += 3;
#endif

memcpy (&fd, file_handle, 4);
memcpy (&off, file_offset, 8);
memcpy (&len, file_len, 4);
Expand Down
Loading