Landing: c03c1da06649

Project / Subsystem

gcc / ada

Date

2026-09-22

Author

Eric Botcazou

Commit

c03c1da06649be182e6e7b0ca06da7376772a299

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
—
commit_hash
c03c1da06649be182e6e7b0ca06da7376772a299
source_type
github
headline
Ada: Partially dynamic accessibility checks for modern standards
tldr
Implements a partially dynamic model for Ada accessibility checks, addressing shortcomings of the static model in Ada 2012 and later.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ada
  • • compiler
  • • semantics
  • • accessibility
  • • ada2012
discussion_id_link
—
bugzilla_pr
—
date
2026-09-22T00:00:00.000Z

This change introduces a partially dynamic small-integer model for Ada accessibility checks in GCC, moving beyond the previous static model. The static model, based on master construct nesting depth, struggled with Ada 2012 requirements like strict caller/called level ordering. The new model augments static nesting depth with dynamic levels passed to subprograms, offering better compliance while keeping runtime overhead minimal. Compile-time changes are localized to the Accessibility unit.