Landing: 40e543b940e0

Project / Subsystem

gcc / gccrs

Date

2026-09-02

Author

Arthur Cohen

Commit

40e543b940e012b43217b6776c166f4970aa75c8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
40e543b940e012b43217b6776c166f4970aa75c8
source_type
github
headline
Codegen compiles extern types as C void
tldr
Rust extern types are compiled to C void, aligning with RFC 1861 for FFI safety.
author
Arthur Cohen
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • rust
  • • codegen
  • • ffi
  • • types
discussion_id_link
—
bugzilla_pr
—
date
2026-09-02T00:00:00.000Z

This change modifies the GCC Rust frontend to compile extern types as C’s void type. RFC 1861 specifies that extern types are dynamically sized and FFI-safe, requiring them to be treated as C void. This ensures correct handling and compatibility for these types when interacting with C code.