Landing: 5ca252314bf0
Project / Subsystem
gcc / lto
Date
2026-07-11
Author
Lewis Hyatt
Commit
5ca252314bf097bfec299ea8564edc4885c1bd6f
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- lto
- patch_id
- —
- commit_hash
- 5ca252314bf097bfec299ea8564edc4885c1bd6f
- source_type
- github
- headline
- LTO location streaming overhauled for large files
- tldr
- LTO location handling improved with optimized map creation and 64-bit location_t to prevent out-of-memory issues.
- author
- Lewis Hyatt
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • lto
- • optimization
- • memory management
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-11T00:00:00.000Z
This commit addresses issues in LTO’s location streaming, particularly concerning ‘out of location_t space’ errors for large files with complex source structures. The solution involves optimizing the lto_location_cache to reduce the number of linemaps created, especially by sorting locations, and migrating location_t to 64 bits. These changes significantly mitigate practical memory exhaustion problems for LTO processing.