]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Move standard subtype declarations generation
authorRonan Desplanques <desplanques@adacore.com>
Wed, 12 Feb 2025 09:37:30 +0000 (10:37 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 6 Jun 2025 08:37:03 +0000 (10:37 +0200)
commit903c0128c6442446df37038341747eacf02a64dc
tree8adf4a9dc0898e856f12de33b297bc008a4ab7b5
parentd5b0410adf21e24177150ac3a209770f46299494
ada: Move standard subtype declarations generation

Before this patch, the subtype declarations for Standard.Natural and
Standard.Positive were created before the entity for Standard.Integer
was complete. In preparation of a future change that will make it
impossible to call Etype on an incomplete node, this patch delays the
creation of these subtype declarations. It doesn't affect the behavior
of the compiler.

gcc/ada/ChangeLog:

* cstand.adb (Create_Standard): Delay declaration generation for
Natural and Positive.
gcc/ada/cstand.adb