aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorLewis Hyatt <lhyatt@gmail.com>2024-10-28 12:52:31 -0400
committerLewis Hyatt <lhyatt@gcc.gnu.org>2024-11-30 13:01:46 -0500
commit2ae0566243c8dacec17ff233e41688f05366d886 (patch)
tree1719721bffac72de999b8d7e1cfbc281ef4a6c2e /libgcc
parent8cc9d27e2db7d9f4867061c848c2d2c46a101371 (diff)
downloadgcc-2ae0566243c8dacec17ff233e41688f05366d886.zip
gcc-2ae0566243c8dacec17ff233e41688f05366d886.tar.gz
gcc-2ae0566243c8dacec17ff233e41688f05366d886.tar.bz2
Support for 64-bit location_t: Internal parts
Several of the selftests in diagnostic-show-locus.cc and input.cc are sensitive to linemap internals. Adjust them here so they will support 64-bit location_t if configured. Likewise, handle 64-bit location_t in the support for -fdump-internal-locations. As was done with the analyzer, convert to (unsigned long long) explicitly so that 32- and 64-bit can be handled with the same printf formats. gcc/ChangeLog: * diagnostic-show-locus.cc (test_one_liner_fixit_validation_adhoc_locations): Adapt so it can effectively test 7-bit ranges instead of 5-bit ranges. (test_one_liner_fixit_validation_adhoc_locations_utf8): Likewise. * input.cc (get_end_location): Adjust types to support 64-bit location_t. (write_digit_row): Likewise. (dump_location_range): Likewise. (dump_location_info): Likewise. (class line_table_case): Likewise. (test_accessing_ordinary_linemaps): Replace some hard-coded constants with the values defined in line-map.h. (for_each_line_table_case): Likewise.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions