Landing: 85e795910cf7

Project / Subsystem

gcc / gccrs

Date

2026-08-13

Author

Lishin

Commit

85e795910cf794ea9b32f94f2d987861285685f8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
85e795910cf794ea9b32f94f2d987861285685f8
source_type
github
headline
gccrs: Generate backend drop flags for conditional moves
tldr
gccrs backend now generates flags to manage runtime drops for conditional moves.
author
Lishin
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • compiler
  • • backend
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

gccrs introduces runtime ‘Drop flags’ for conditional drops in the backend. These flags, managed by the compiler context, track initialization and are cleared after a move. The backend uses BIR analysis to identify locals needing drop flags and moves that clear them, ensuring correct cleanup execution before function exit or scope end. This improves the robustness of drop management for complex control flow.