rust-lang / rust-lang/rustc_codegen_gcc

Complete the mapping from LLVM arch to GCC arch

Open
#366 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
105
Avg merge
8h 20m
Merged PRs (30d)
14

Description

LLVM uses different values for the -march flag compared to GCC, so we need a mapping between the two.
This issue is about completing this mapping.

https://github.com/rust-lang/rustc_codegen_gcc/blob/7425c560d3e53eb34fbdf8979981566ab8b344d1/src/gcc_util.rs#L201-L206

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/gcc_util.rs around lines 201-206, where the LLVM-to-GCC architecture mapping is located. Compare the existing mapping with the architecture values supported by LLVM and GCC, then complete the missing entries. Done means the mapping covers the required differing -march values; review the issue thread for any prior discussion.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.