Landing: 46d2b1f7b898
Project / Subsystem
gcc / gccrs
Date
2026-06-29
Author
Enes Cevik
Commit
46d2b1f7b898c309bd2d61200a91bfd4c285c8ca
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 46d2b1f7b898c309bd2d61200a91bfd4c285c8ca
- source_type
- github
- headline
- gccrs: intrinsic: Add size_of_val
- tldr
- gccrs now supports the `size_of_val` intrinsic for runtime size evaluation, including Dynamically Sized Types.
- author
- Enes Cevik
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • intrinsic
- • backend
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-29T00:00:00.000Z
The gccrs compiler has incorporated the size_of_val intrinsic, enabling the evaluation of a value’s size at runtime. This feature extends to Dynamically Sized Types (DSTs), providing developers with a way to query memory usage dynamically. The implementation includes new handler functions and type-checking rules.