https://gcc.gnu.org/g:8cc9d27e2db7d9f4867061c848c2d2c46a101371

commit r15-5829-g8cc9d27e2db7d9f4867061c848c2d2c46a101371
Author: Lewis Hyatt <lhy...@gmail.com>
Date:   Tue Nov 26 11:53:36 2024 -0500

    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:
---
 gcc/toplev.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.  */

Reply via email to