Landing: b54a9eab5866
Project / Subsystem
gcc / ada
Date
2026-02-07
Author
Eric Botcazou
Commit
b54a9eab586617e8f63322c88708dbf7d2f40264
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- b54a9eab586617e8f63322c88708dbf7d2f40264
- source_type
- github
- headline
- Factor out common pattern in Exp_Ch6
- tldr
- This commit refactors the Exp_Ch6 module in the Ada compiler to extract a common code pattern, improving code maintainability.
- author
- Eric Botcazou
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • refactor
- • code quality
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-07T00:00:00.000Z
This commit refactors the Ada compiler’s Exp_Ch6 module by extracting a common prologue used in procedures dealing with build-in-place calls. The change introduces a new function, Get_Function_Entity, and replaces the duplicated prologue code with calls to this function. This improves code readability and maintainability without introducing any functional changes.