rust-lang / rust-lang/rustc_codegen_gcc

Handle pointee_align

Open
#606 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I noticed we don't handle pointee_align.

To implement this, look for pointee_align in cg_llvm and implement the same logic in cg_gcc.

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 by locating pointee_align in the cg_llvm implementation and compare it with the corresponding codegen paths in cg_gcc. Use the referenced rustc_target/src/callconv/mod.rs definition to understand the field. Done means cg_gcc applies the same pointee_align handling as cg_llvm.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.