Landing: 735a8dbc3fba
Project / Subsystem
gcc / ada
Date
2025-12-24
Author
Javier Miranda
Commit
735a8dbc3fba7bb0b76090063e6ccc788c790dbc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 735a8dbc3fba7bb0b76090063e6ccc788c790dbc
- source_type
- github
- headline
- Ada: Improve machinery for generating predicate checks
- tldr
- This commit improves the code that generates predicate checks in Ada, adding support for incomplete types and factoring out common code.
- author
- Javier Miranda
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • predicate checks
- • refactor
- • incomplete types
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2025-12-24T00:00:00.000Z
This commit enhances the machinery used for generating predicate checks in Ada. It introduces new subprograms Is_Fully_Initialized_Constrained_Array, Is_Fully_Initialized_Record_Type, and Is_Partially_Initialized_Record_Type to factorize code and add missing support for incomplete types. These improvements make the code more maintainable and ensure that predicate checks are correctly generated for a wider range of types.