GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
ada

Rename Insert_Pragma to Insert_Aitem for broader functionality

The Ada compiler's `Insert_Pragma` procedure is renamed to `Insert_Aitem` to reflect its expanded support for attribute definition clauses.

The Insert_Pragma procedure in the Ada compiler has been renamed to Insert_Aitem to better reflect its expanded functionality. It now supports attribute_definition_clauses in addition to pragmas. The procedure also now sets Aitem to Empty, which this commit documents.

In Details

This commit renames Insert_Pragma to Insert_Aitem in sem_ch13.adb. The procedure now supports attribute_definition_clauses in addition to pragmas, hence the rename. The commit also documents the fact that it sets Aitem to Empty.

For Context

In Ada, pragmas are compiler directives that provide instructions or hints to the compiler. Attribute definition clauses allow you to specify certain properties or characteristics of program entities. This commit modifies a procedure in the Ada compiler that inserts these pragmas and attribute definitions into the program's abstract syntax tree (AST). Renaming the procedure from Insert_Pragma to Insert_Aitem indicates that it now handles more than just pragmas.

Filed Under: adapragmasattribute definitionrefactor