]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak definition of Modulus field of entities
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 18 Feb 2025 10:24:15 +0000 (11:24 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 6 Jun 2025 08:37:06 +0000 (10:37 +0200)
commitdf310aab0e1f56da10382a68ddd46d3fa0aa89a4
treef2c2a05c13066a76c9c2864e5f7728fd406c0b11
parent573b0389e6fe46a328964c4cc705dfff63dcb611
ada: Tweak definition of Modulus field of entities

The compiler may build modular integer subtypes whose base type is private
in the context of instantiations, but we want to be able to get the Modulus.

gcc/ada/ChangeLog:

* einfo.ads (Modulus): Change to implementation base type only.
* gen_il-gen-gen_entities.adb (Modular_Integer_Kind): Change type
of Modulus field to Impl_Base_Type_Only.
gcc/ada/einfo.ads
gcc/ada/gen_il-gen-gen_entities.adb