Landing: 7db33bdab1d3
Project / Subsystem
gcc / range-ops
Date
2026-05-06
Author
David Malcolm
Commit
7db33bdab1d3fe3b1257f818e679837bb4119447
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- range-ops
- patch_id
- —
- commit_hash
- 7db33bdab1d3fe3b1257f818e679837bb4119447
- source_type
- github
- headline
- range-ops: Use const/static where possible
- tldr
- This commit improves code clarity and reduces potential errors by adding `const` and `static` keywords to range-ops functions and variables.
- author
- David Malcolm
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • refactor
- • code quality
- • const
- • static
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-06T00:00:00.000Z
This commit refactors the range-ops code to use const and static where appropriate. This improves code clarity, may offer slight performance improvements by enabling better compiler optimizations due to immutability guarantees, and reduces the risk of unintended modification of data. No functional change is intended.