Landing: 079cbf59c511
Project / Subsystem
gcc / ada
Date
2026-02-19
Author
Claire Dross
Commit
079cbf59c5110b290917d09935afec0d7fe29acc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 079cbf59c5110b290917d09935afec0d7fe29acc
- source_type
- github
- headline
- Disable inlining of subprograms with unchecked union parameters for GNATprove
- tldr
- The Ada compiler now prevents inlining of subprograms with unchecked union type formal parameters when compiling for GNATprove.
- author
- Claire Dross
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • gnatprove
- • unchecked union
- • inlining
- • restrictions
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-02-19T00:00:00.000Z
To ensure GNATprove’s reliability, the Ada compiler now restricts inlining when a formal parameter has an unchecked union type. Inlining such subprograms could lead to missed checks for Unchecked Union restrictions, potentially compromising GNATprove’s ability to verify code correctness. This change prevents those missed checks.