Landing: 35e344e5ccd0
Project / Subsystem
gcc / gccrs
Date
2026-07-16
Author
Lishin
Commit
35e344e5ccd0889840e3a7f164403cb36e525ce0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 35e344e5ccd0889840e3a7f164403cb36e525ce0
- source_type
- github
- headline
- Centralize function-scope drop handling in gccrs
- tldr
- gccrs now uses a unified try-finally mechanism for function-scope drops, simplifying code generation.
- author
- Lishin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • compiler
- • backend
- • cleanup
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-16T00:00:00.000Z
gccrs centralizes the emission of drop calls for function scopes into a single try-finally cleanup path. This change removes individual drop-emission calls scattered throughout the code and applies the consistent cleanup to constant-item and closure function bodies, simplifying the backend’s drop management.