Landing: 8f60387387e6
Project / Subsystem
gcc / statistics
Date
2026-08-01
Author
Lewis Hyatt
Commit
8f60387387e6c08071abe1493db849c459492e3e
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- statistics
- patch_id
- —
- commit_hash
- 8f60387387e6c08071abe1493db849c459492e3e
- source_type
- github
- headline
- Fix statistics gathering destruction ordering
- tldr
- Prevents internal compiler errors caused by statistics gathering objects being destroyed in the wrong order.
- author
- Lewis Hyatt
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • bugfix
- • statistics
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-01T00:00:00.000Z
This change addresses destruction ordering issues within GCC’s statistics gathering infrastructure. File-local static variables responsible for tracking data structure allocations could be destroyed before the structures they were monitoring, leading to internal compiler errors (ICEs). The fix ensures these statistics objects are never destroyed, as they are intended to persist for the entire process duration.