Landing: 662e6049df5e

Project / Subsystem

gcc / gccrs

Date

2026-07-03

Author

Owen Avery

Commit

662e6049df5e55d0a74f6b330ac95716aae870f5

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
662e6049df5e55d0a74f6b330ac95716aae870f5
source_type
github
headline
gccrs: Register global_allocator attribute
tldr
gccrs now recognizes the `global_allocator` attribute, enabling basic validation of its usage.
author
Owen Avery
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • attribute
  • • allocator
  • • rust
discussion_id_link
—
bugzilla_pr
—
date
2026-07-03T00:00:00.000Z

The gccrs Rust compiler now registers the #[global_allocator] attribute. This commit enables gccrs to recognize this attribute and perform initial sanity checks, such as ensuring it’s applied only to static items. While this does not implement the full functionality for custom allocators, it’s a necessary step for understanding and validating the attribute’s presence in the code.