Landing: eb180fd6790b
Project / Subsystem
gcc / gccrs
Date
2026-07-16
Author
Lishin
Commit
eb180fd6790b9c7d197a582faaa52788d96517ff
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- eb180fd6790b9c7d197a582faaa52788d96517ff
- source_type
- github
- headline
- Remove manual drop emission for explicit returns
- tldr
- GCC Rust compiler simplifies explicit return handling by using try-finally cleanup.
- author
- Lishin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • cleanup
- • codegen
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-16T00:00:00.000Z
Manual drop emission for explicit return statements in the GCC Rust compiler has been removed. Instead, explicit returns are now handled using a try-finally cleanup mechanism, simplifying the code generation for these cases. This change removes related helper functions and modifies the expression compilation to store return statements for later processing.