Landing: 723537f6c46b

Project / Subsystem

gcc / gccrs

Date

2026-06-30

Author

Yap Zhi Heng

Commit

723537f6c46bf2b8995ae3450f835ffe00f2a35e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
723537f6c46bf2b8995ae3450f835ffe00f2a35e
source_type
github
headline
gccrs: Implement compilation of `#[repr(transparent)]` structs
tldr
Adds support for compiling Rust structs marked with `#[repr(transparent)]`.
author
Yap Zhi Heng
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • backend
  • • FFI
discussion_id_link
—
bugzilla_pr
—
date
2026-06-30T00:00:00.000Z

This commit implements the necessary code generation logic for Rust structs annotated with #[repr(transparent)]. This attribute allows a struct with a single field to have the same memory representation as that field, enabling seamless interoperability with C-compatible types. The changes cover compilation of field access and struct construction for these types.