Landing: 8e3bcd151cc3

Project / Subsystem

gcc / ada

Date

2026-03-16

Author

Andres Toom

Commit

8e3bcd151cc302de31736154e02bba29cf8d044d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
8e3bcd151cc302de31736154e02bba29cf8d044d
source_type
github
headline
Retain enumeration literal names in GNATprove mode
tldr
This commit prevents the Ada compiler from discarding enumeration literal names when in GNATprove mode to support the `Image` attribute.
author
Andres Toom
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • gnatprove
  • enumeration
  • verification
discussion_id_link
bugzilla_pr
date
2026-03-16T00:00:00.000Z

This commit modifies the Ada compiler’s behavior in GNATprove mode to preserve the names of enumeration literals. This is necessary because GNATprove now supports the Image attribute for enumerated types, which requires access to these names for proper reasoning. This change ensures that GNATprove can correctly analyze and verify Ada code that uses enumeration literals with the Image attribute.