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.
work on handling binary operations in the compiler
cobc: * tree.h (cb_binary_op, cb_binary_op_flag, cb_binary_op_op): changed struct cb_binary_op to use new enums for the actual operation and for "special flags" instead of storing those in integers with special value * tree.h (BOP_OPERANDS_SWAPPED), typeck.c (cb_build_cond, swap_condition_operands), codegen.c (output_cond): store flag when swap operation is done and swap the result for return values as used in `SEARCH ALL` later * codegen.c (output_long_integer): reduce scope of variables as done in (output_integer)
- Loading branch information
sf-mensch
committed
Dec 16, 2022
1 parent
6df6cac
commit 456b5e3
Showing
4 changed files
with
78 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
|
||
2022-12-16 Simon Sobisch <[email protected]> | ||
|
||
* tree.h (cb_binary_op, cb_binary_op_flag, cb_binary_op_op): changed struct | ||
cb_binary_op to use new enums for the operation and for "special flags" | ||
* tree.h (BOP_OPERANDS_SWAPPED), codegen.c (output_cond), typeck.c | ||
(cb_build_cond, swap_condition_operands): store flag when swap operation | ||
is done and swap the result for return values as used in SEARCH ALL later | ||
* codegen.c (output_long_integer): reduce scope of variables as done | ||
in (output_integer) | ||
|
||
2022-12-15 Simon Sobisch <[email protected]> | ||
|
||
* codegen.c (output_initialize_to_value): fix bad generation for VALUE size | ||
|
@@ -18,7 +28,6 @@ | |
* typeck.c (cb_build_cond_fields): optimize comparison between field and | ||
SPACES up to COB_SPACES_ALPHABETIC_BYTE_LENGTH | ||
|
||
|
||
2022-12-14 Simon Sobisch <[email protected]> | ||
|
||
* typeck.c (validate_move): fix bug #643 add check for SET literal TO val | ||
|
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
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