Landing: de7fc69d08a8

Project / Subsystem

gcc / gccrs

Date

2026-06-29

Author

Philip Herron

Commit

de7fc69d08a863b526440bb94d7aa2697a5d7627

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
commit_hash
de7fc69d08a863b526440bb94d7aa2697a5d7627
source_type
github
headline
gccrs: turn on can_alias_all on build_pointer_type
tldr
Rust raw pointers in gccrs are now treated as possibly aliasing, aligning with Rust semantics.
author
Philip Herron
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gccrs
  • rust
  • pointer
  • aliasing
discussion_id_link
bugzilla_pr
date
2026-06-29T00:00:00.000Z

The gccrs compiler now correctly reflects Rust’s semantics regarding pointer aliasing. Raw pointers in Rust are defined as potentially aliasing all other memory, while reference types have stronger guarantees. This change ensures that the can_alias_all attribute is enabled when building pointer types in gccrs, aligning compiler behavior with the language specification.