rust-lang / rust-lang/rustc_codegen_gcc
Implement variable lifetimes
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 105
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 14
Description
I mean the BuilderMethods::lifetime_start and lifetime_end methods which would be implemented here: https://github.com/rust-lang/rustc_codegen_gcc/blob/764770d6a83353cbd2cb4d836ff5bf802d75bb86/src/builder.rs#L1661-L1667
If I understand correctly, this would allow reusing variable stack space.
How could this be done? Could the variable lifetimes be mapped to gcc blocks?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/builder.rs around lines 1661–1667 and the rustc_codegen_ssa BuilderMethods documentation for lifetime_start and lifetime_end. Investigate whether GCC blocks provide the needed lifetime representation and how those methods should map to them. Done means both methods are implemented with behavior that supports the intended reuse of variable stack space.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100