rust-lang / rust-lang/rustc_codegen_gcc
Support retpolines
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Rust
- Stars
- 1.2k
- Forks
- 105
- Avg merge
- 8h 20m
- Merged PRs (30d)
- 14
Description
In Rust for Linux, they can optionally use retpolines and use these features:
retpoline-external-thunkretpoline-indirect-branchesretpoline-indirect-calls
GCC's -mindirect-branch=thunk-extern is probably equivalent to retpoline-external-thunk, but I'm not sure about the others.
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
No file, test, or entry point is identified. Start by locating how compiler options are handled and comparing Rust for Linux's three retpoline features with GCC's documented equivalents. Done means the supported retpoline options are correctly implemented and covered by appropriate tests.
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