Landing: fe440c99d6a9
Project / Subsystem
gcc / cfghooks
Date
2026-05-09
Author
Andrew Pinski
Commit
fe440c99d6a96498d663c86c0298e1c97e24c410
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cfghooks
- patch_id
- —
- commit_hash
- fe440c99d6a96498d663c86c0298e1c97e24c410
- source_type
- github
- headline
- cfghooks: Make cfg_hooks const to Prevent Runtime Modification
- tldr
- The cfg_hooks struct is now const to prevent accidental runtime modification, improving code safety.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cfg
- • const
- • refactor
- • ia64
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-09T00:00:00.000Z
This commit makes the cfg_hooks struct const, preventing unintended modifications at runtime. The change involves adjusting how sel-sched handles cfg_hooks by directly changing the pointer back to the original cfg_hooks instead of copying data back. This change improves code safety without significantly impacting functionality, primarily affecting the ia64 backend.