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

Enables the Unsigned_Base_Range aspect in Ada

Enables the `Unsigned_Base_Range` language extension in Ada, removing the need for the `-gnatd.u` switch.

This commit enables the Unsigned_Base_Range language extension in Ada by default. The -gnatd.u switch is no longer required to use this extension, simplifying the development process and making the feature more accessible. This involves changes to aspects, debugging flags, parsing and semantic analysis.

In Details

This commit modifies aspects.adb, debug.adb, par-ch4.adb, and sem_prag.adb to enable the Unsigned_Base_Range aspect. The -gnatd.u switch is no longer needed. Documentation is also updated in gnat_rm.texi and gnat_ugn.texi.

For Context

Ada allows specifying properties called *aspects* for data types. This commit enables a specific aspect called Unsigned_Base_Range. This aspect allows you to specify that the underlying range of a type should be unsigned. By enabling this aspect by default, developers can now use this feature without needing to specify a special compiler flag.

Filed Under: adaaspectsunsigned_base_rangelanguage extension