From: Lewis Hyatt Date: Tue, 26 Nov 2024 16:53:36 +0000 (-0500) Subject: Support for 64-bit location_t: toplev parts X-Git-Tag: basepoints/gcc-16~3724 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8cc9d27e2db7d9f4867061c848c2d2c46a101371;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/toplev.cc b/gcc/toplev.cc index 7eb7733c2761..d4a4add29f92 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. */