Robert Dubner e7356e34b2 cobol: Improve generated code for fast_add and fast_subtract.
These changes improve the efficiency of generated code by recognizing
more instances where operations are on little-endian binary COBOL
variables and then avoiding calls to libgcobol.  The generated code
also reduces the number of intermediate variables created for that
little-endian arithmetic.

gcc/cobol/ChangeLog:

	* genapi.cc (tree_type_from_field_type): Move static code.
	(compare_binary_binary): Identify little-endian compares.
	(psa_FldLiteralN): Eliminate obsolete development code; make the
	initialized variables TREE_CONSTANT.
	(parser_symbol_add): Adjust for modified FldLiteralN.
	* genmath.cc (all_results_binary): Renamed. Modified for fastness.
	(all_results_integer): Likewise.
	(all_refers_integer): Likewise.
	(largest_binary_term): Likewise.
	(fast_add): Expand conditions.  Use get_binary_value_tree.
	(fast_subtract): Likewise.
	(fast_multiply): Expand conditions.
	(fast_divide): Expand conditions.
	(parser_add): Avoid fast_add when error or not-error are specified.
	(parser_multiply): Likewise.
	(parser_divide): Likewise.
	(parser_subtract): Likewise.
	* genutil.cc (tree_type_from_field): Disable; flagged for removal.
	(get_binary_value): Use get_binary_value_tree.
	(get_binary_value_tree): Avoid intermediate variables when possible.
	(refer_is_clean): Formatting.
	(is_pure_integer): Refine test for little-endian binary.
	* genutil.h (get_binary_value_tree): New declaration.
	(is_pure_integer): New declaration.
	* symbols.cc (symbol_table_init): Explanatory ZEROS comment.

libgcobol/ChangeLog:

	* gfileio.cc (__gg__file_reopen): Raise exception on failed OPEN
	* gmath.cc (__gg__fixed_phase2_assign_to_c): Let pointer arithmetic
	go negative.
	(__gg__subtractf2_fixed_phase1): Edit a comment.
2026-02-18 23:21:22 -05:00
2026-02-16 00:16:25 +00:00
2026-02-13 00:16:32 +00:00
2026-02-13 00:16:32 +00:00
2026-02-13 00:16:32 +00:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 4.2 GiB
Languages
C++ 30.7%
C 30.2%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.4%