]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Support for 64-bit location_t: toplev parts
authorLewis Hyatt <lhyatt@gmail.com>
Tue, 26 Nov 2024 16:53:36 +0000 (11:53 -0500)
committerLewis Hyatt <lhyatt@gcc.gnu.org>
Sat, 30 Nov 2024 18:01:46 +0000 (13:01 -0500)
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.

gcc/toplev.cc

index 7eb7733c2761433db94239e7e03e68b7c9e72b92..d4a4add29f92ba260de924795d8ea48286203667 100644 (file)
@@ -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.  */