aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expression-yeast.h
diff options
context:
space:
mode:
authorRobert Dubner <rdubner@symas.com>2025-08-07 15:52:02 -0400
committerRobert Dubner <rdubner@symas.com>2025-08-07 16:12:32 -0400
commitc684053fc0f0a159f4ddbc7d023fdcc61752b58d (patch)
tree22cb4c18fe39bfe167e5cd4f80bb0f67d649b93b /gcc/rust/ast/rust-expression-yeast.h
parent932b764be40bc675a65b89111bd28f31e99fcdbd (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
cobol: Improve binary-to-string conversion.HEADtrunkmaster
COBOL often requires the conversion of binary integers to string of characters. These changes replace a naive routine that peels decimal digits from a binary value one digit at a time, with a divide-and-conquer algorithm that is twice as fast even for a couple of digits, and is about eight times faster past ten digits. Included here are some minor fixes to the lexer and parser. gcc/cobol/ChangeLog: * cbldiag.h (location_dump): Source code formatting. * parse.y: error_msg formatting. * scan.l: Remove UTF-8 character from regex pattern. * scan_ante.h (numstr_of): error_msg formatting. * show_parse.h (class ANALYZE): Suppress cppcheck error. * util.cc (cbl_field_t::report_invalid_initial_value): error_msg formatting. libgcobol/ChangeLog: * Makefile.am: Include new stringbin.cc file. * Makefile.in: Regenerated. * libgcobol.cc (__gg__power_of_ten): Improve error message. (__gg__binary_to_string): Deleted. (__gg__binary_to_string_internal): Deleted. (int128_to_field): Use new conversion routine. (__gg__move): Use new conversion routine. * stringbin.cc: New file. Implements new conversion routine. * stringbin.h: New file. Likewise.
Diffstat (limited to 'gcc/rust/ast/rust-expression-yeast.h')
0 files changed, 0 insertions, 0 deletions