aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.cc
diff options
context:
space:
mode:
authorLewis Hyatt <lhyatt@gmail.com>2024-11-26 11:53:36 -0500
committerLewis Hyatt <lhyatt@gcc.gnu.org>2024-11-30 13:01:46 -0500
commit8cc9d27e2db7d9f4867061c848c2d2c46a101371 (patch)
treebf83e35fe0e73647463b4acac31041c015079004 /gcc/toplev.cc
parent9bba9067598dd92dc7bae3bca242a6d350f5b799 (diff)
downloadgcc-8cc9d27e2db7d9f4867061c848c2d2c46a101371.zip
gcc-8cc9d27e2db7d9f4867061c848c2d2c46a101371.tar.gz
gcc-8cc9d27e2db7d9f4867061c848c2d2c46a101371.tar.bz2
Support for 64-bit location_t: toplev parts
With the upcoming move from 32-bit to 64-bit location_t, the recommended number of range bits will change from 5 to 7. line-map.h now exports the recommended setting, so use that instead of hard-coding 5. gcc/ChangeLog: * toplev.cc (general_init): Replace hard-coded constant with line_map_suggested_range_bits.
Diffstat (limited to 'gcc/toplev.cc')
-rw-r--r--gcc/toplev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.cc b/gcc/toplev.cc
index 7eb7733..d4a4add 100644
--- a/gcc/toplev.cc
+++ b/gcc/toplev.cc
@@ -1136,7 +1136,7 @@ general_init (const char *argv0, bool init_signals, unique_argv original_argv)
linemap_init (line_table, BUILTINS_LOCATION);
line_table->m_reallocator = realloc_for_line_map;
line_table->m_round_alloc_size = ggc_round_alloc_size;
- line_table->default_range_bits = 5;
+ line_table->default_range_bits = line_map_suggested_range_bits;
init_ttree ();
/* Initialize register usage now so switches may override. */